summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-02-03 13:59:20 (GMT)
committerGitHub <noreply@github.com>2019-02-03 13:59:20 (GMT)
commit8a31e77445a94277151666380860defedcc3838d (patch)
tree670dbdd5a2a43dbc09374c9a9d01da17f6e1b09f
parente54ccc0e6eb12a0720860d863a89cb3f1a83f2a2 (diff)
parent3943f607c7ced0a9601a86f3f073ede0e5dd0ee0 (diff)
downloadDoxygen-8a31e77445a94277151666380860defedcc3838d.zip
Doxygen-8a31e77445a94277151666380860defedcc3838d.tar.gz
Doxygen-8a31e77445a94277151666380860defedcc3838d.tar.bz2
Merge pull request #6813 from albert-github/feature/issue_6812
issue #6812 Empty lines are lost when copy-pasting from code section.
-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)