diff options
author | Eduardo Chappa <chappa@washington.edu> | 2017-01-01 12:49:28 -0700 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2017-01-01 12:49:28 -0700 |
commit | 6278103d269e6882bb26a770c1f25bcd3e20ff13 (patch) | |
tree | f238aab74ddc76fb225cd2c39891180c8567cd4d /pith/filter.c | |
parent | eefde42da7da15b305a56b443c166bfd96ba7432 (diff) | |
download | alpine-6278103d269e6882bb26a770c1f25bcd3e20ff13.tar.xz |
* Further improvements to support for parameters of OL tag.
Diffstat (limited to 'pith/filter.c')
-rw-r--r-- | pith/filter.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pith/filter.c b/pith/filter.c index 697ede61..845ec525 100644 --- a/pith/filter.c +++ b/pith/filter.c @@ -5644,13 +5644,13 @@ html_ol(HANDLER_S *hd, int ch, int cmd) p = p->next) if(p->value){ if(!strucmp(p->attribute, "TYPE")){ - if(!strucmp(p->value, "a")) /* alpha, capital */ + if(!strucmp(p->value, "a")) /* alpha, lowercase */ hd->y = LIST_ALPHALO; - else if(!strucmp(p->value, "A")) /* alpha, lowercase */ + else if(!strucmp(p->value, "A")) /* alpha, uppercase */ hd->y = LIST_ALPHAUP; - else if(!strucmp(p->value, "i")) /* roman, capital */ + else if(!strucmp(p->value, "i")) /* roman, lowercase */ hd->y = LIST_ROMANLO; - else if(!strucmp(p->value, "I")) /* roman, lowercase */ + else if(!strucmp(p->value, "I")) /* roman, uppercase */ hd->y = LIST_ROMANUP; else if(strucmp(p->value, "1")) /* decimal, the default */ hd->y = LIST_UNKNOWN; @@ -5658,6 +5658,10 @@ html_ol(HANDLER_S *hd, int ch, int cmd) else if(!strucmp(p->attribute, "START")) hd->x = atol(p->value); // else ADD SUPPORT FOR OTHER ATTRIBUTES... LATER +// this is not so simple. The main missing support +// is for the STYLE attribute, but implementing that +// correctly will take time, so will be implemented +// after version 2.21 is released. } HD(hd->html_data)->li_pending = 1; html_blank(hd->html_data, 0); |