diff options
author | albert-github <albert.tests@gmail.com> | 2019-02-01 18:11:59 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-02-01 18:11:59 (GMT) |
commit | 3943f607c7ced0a9601a86f3f073ede0e5dd0ee0 (patch) | |
tree | ee9324843bae700232f012e587c2599776ae5ea4 | |
parent | 9778b72f5641d98f98a1851fc93148f9da258a74 (diff) | |
download | Doxygen-3943f607c7ced0a9601a86f3f073ede0e5dd0ee0.zip Doxygen-3943f607c7ced0a9601a86f3f073ede0e5dd0ee0.tar.gz Doxygen-3943f607c7ced0a9601a86f3f073ede0e5dd0ee0.tar.bz2 |
issue #6812 Empty lines are lost when copy-pasting from code section.
In case of an empty line insert an space so the line will be shown with copy & paste (including the space!).
-rw-r--r-- | src/htmlgen.cpp | 10 |
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) |