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:57:24 +0100 |
commit | 597fa37cacec928c40d0491174ce843fe01f26d9 (patch) | |
tree | b9e8b9d4a790d4ec8b35fc29331fdbd9809d2591 /utils | |
parent | 2fc36dba5f63703896722adb5127896e4c2840e7 (diff) |
Close li tags in generated outlines.
Also, add newlines after ul tags for better readability.
Bug #45807
(cherry picked from commit bf81250ff7d0968852fc7559fafb6389cd695b91)
Diffstat (limited to 'utils')
-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 ee4da7fa..43fc21aa 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++) { @@ -1693,16 +1693,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; } |