diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-12-18 09:50:48 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-12-18 09:50:48 (GMT) |
commit | 7d920a52163162f98c456e051454b9d766e56e69 (patch) | |
tree | 2888fdce339b2465fc0611d29eb71085d07eefe7 /src/doctokenizer.l | |
parent | 5260651e7e3c5a2a788b2de752028899b5e10c7f (diff) | |
parent | 2001c933292d3dd25ebc6634dab62aab7389c5bc (diff) | |
download | Doxygen-7d920a52163162f98c456e051454b9d766e56e69.zip Doxygen-7d920a52163162f98c456e051454b9d766e56e69.tar.gz Doxygen-7d920a52163162f98c456e051454b9d766e56e69.tar.bz2 |
Merge branch 'feature/bug_unsupported_html' of https://github.com/albert-github/doxygen into albert-github-feature/bug_unsupported_html
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r-- | src/doctokenizer.l | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l index a527672..640df34 100644 --- a/src/doctokenizer.l +++ b/src/doctokenizer.l @@ -203,6 +203,7 @@ static void handleHtmlTag() // Parse the attributes. Each attribute is a name, value pair // The result is stored in g_token->attribs. int startName,endName,startAttrib,endAttrib; + int startAttribList = i; while (i<(int)yyleng) { char c=tagText.at(i); @@ -237,7 +238,7 @@ static void handleHtmlTag() // search for matching quote while (i<(int)yyleng && c!='\'') { c=tagText.at(++i); } endAttrib=i; - if (i<(int)yyleng) c=tagText.at(++i); + if (i<(int)yyleng) { c=tagText.at(++i);} } else if (tagText.at(i)=='"') // option "..." { @@ -246,7 +247,7 @@ static void handleHtmlTag() // search for matching quote while (i<(int)yyleng && c!='"') { c=tagText.at(++i); } endAttrib=i; - if (i<(int)yyleng) c=tagText.at(++i); + if (i<(int)yyleng) { c=tagText.at(++i);} } else // value without any quotes { @@ -254,7 +255,7 @@ static void handleHtmlTag() // search for separator or end symbol while (i<(int)yyleng && !isspace((uchar)c) && c!='>') { c=tagText.at(++i); } endAttrib=i; - if (i<(int)yyleng) c=tagText.at(++i); + if (i<(int)yyleng) { c=tagText.at(++i);} } opt.value = tagText.mid(startAttrib,endAttrib-startAttrib); if (opt.name == "align") opt.value = opt.value.lower(); @@ -271,6 +272,7 @@ static void handleHtmlTag() // opt.name.data(),opt.value.data()); g_token->attribs.append(&opt); } + g_token->attribsStr = tagText.mid(startAttribList,i-startAttribList); } static QCString stripEmptyLines(const QCString &s) |