Summary: | HTML Export: final <i> and <b> tags are not closed | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | bernhardberger |
Component: | kwrite | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 4.0 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
bernhardberger
2002-10-24 16:16:59 UTC
Subject: kdelibs/kate/part CVS commit by rodda: Close final <b> and <i> tags on HTML Export. Backport. CCMAIL:49630-done@bugs.kde.org M +8 -1 katedocument.cpp 1.419 --- kdelibs/kate/part/katedocument.cpp #1.418:1.419 @@ -4722,4 +4722,11 @@ bool KateDocument::exportDocumentToHTML( (*outputStream) << endl; } + + // Be good citizens and close our tags + if (previousCharacterWasBold) + (*outputStream) << "</b>"; + if (previousCharacterWasItalic) + (*outputStream) << "</i>"; + // HTML document end : (*outputStream) << "</span>"; // i'm guaranteed a span is started (i started one at the beginning of the output). |