summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/htmlgen.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp
index b8fc5a2..ee92668 100644
--- a/src/htmlgen.cpp
+++ b/src/htmlgen.cpp
@@ -667,7 +667,15 @@ void HtmlCodeGenerator::startCodeLine(bool hasLineNumbers)
void HtmlCodeGenerator::endCodeLine()
{
- if (m_streamSet) m_t << "</div>";
+ if (m_streamSet)
+ {
+ if (m_col == 0)
+ {
+ m_t << " ";
+ m_col++;
+ }
+ m_t << "</div>";
+ }
}
void HtmlCodeGenerator::startFontClass(const char *s)