diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/doctokenizer.l | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l index dd2c183..deac51c 100644 --- a/src/doctokenizer.l +++ b/src/doctokenizer.l @@ -262,6 +262,12 @@ static void handleHtmlTag() if (i<(int)yyleng) c=tagText.at(++i); } opt.value = tagText.mid(startAttrib,endAttrib-startAttrib); + if (opt.name == "align") opt.value = opt.value.lower(); + else if (opt.name == "valign") + { + opt.value = opt.value.lower(); + if (opt.value == "center") opt.value="middle"; + } } else // start next option { |