diff options
author | Igor Slepchin <igor.slepchin@gmail.com> | 2012-02-08 19:22:13 -0500 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2012-02-09 21:55:54 +0100 |
commit | bf81250ff7d0968852fc7559fafb6389cd695b91 (patch) | |
tree | f0ab46cebfaf952827aab56a5a4ded8f08dfbda2 | |
parent | 53a0c2043dfd56f6da7780f1a049f75af368b84b (diff) |
Close li tags in generated outlines.
Also, add newlines after ul tags for better readability.
Bug #45807
-rw-r--r-- | utils/HtmlOutputDev.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/utils/HtmlOutputDev.cc b/utils/HtmlOutputDev.cc index 53dd6571..c7604265 100644 --- a/utils/HtmlOutputDev.cc +++ b/utils/HtmlOutputDev.cc @@ -1631,7 +1631,7 @@ GBool HtmlOutputDev::newOutlineLevel(FILE *output, GooList *outlines, Catalog* c fputs("<A name=\"outline\"></a>", output); fputs("<h1>Document Outline</h1>\n", output); } - fputs("<ul>",output); + fputs("<ul>\n",output); for (int i = 0; i < outlines->getLength(); i++) { @@ -1695,16 +1695,19 @@ GBool HtmlOutputDev::newOutlineLevel(FILE *output, GooList *outlines, Catalog* c fputs("</A>",output); delete linkName; } - fputs("\n",output); delete titleStr; atLeastOne = gTrue; item->open(); if (item->hasKids()) + { + fputs("\n",output); newOutlineLevel(output, item->getKids(), catalog, level+1); + } item->close(); + fputs("</li>\n",output); } - fputs("</ul>",output); + fputs("</ul>\n",output); return atLeastOne; } |