summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2015-08-23 09:25:37 (GMT)
committeralbert-github <albert.tests@gmail.com>2015-08-23 09:25:37 (GMT)
commit663544cc0caf9109ea10c33f38b1e07e7a01a575 (patch)
tree5429183503930dfc09bf4afb49ea038e2c79a98e
parent5c2b6c294535a0dabe29b5ef311b4975eccb2357 (diff)
downloadDoxygen-663544cc0caf9109ea10c33f38b1e07e7a01a575.zip
Doxygen-663544cc0caf9109ea10c33f38b1e07e7a01a575.tar.gz
Doxygen-663544cc0caf9109ea10c33f38b1e07e7a01a575.tar.bz2
Bug 753909 - Copy and paste of code fragment from CHM merges all pasted text into single line
Complete code fragment was pasted in one line (chm, HTML OK), with the change in the ccs file this problem is overcome. Result was that between multiple code lines on the 2nd and following line a extra space appeared at the beginning of the line, this is overcome by placing all relevant div statements on one line. (based a.o. on http://stackoverflow.com/questions/19099873/how-can-i-use-css-to-insert-a-line-break-after-but-not-before-an-element)
-rw-r--r--src/htmlgen.cpp2
-rw-r--r--templates/html/doxygen.css5
2 files changed, 6 insertions, 1 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp
index e8da420..e6431e8 100644
--- a/src/htmlgen.cpp
+++ b/src/htmlgen.cpp
@@ -653,7 +653,7 @@ void HtmlCodeGenerator::startCodeLine(bool hasLineNumbers)
void HtmlCodeGenerator::endCodeLine()
{
- if (m_streamSet) m_t << "</div>\n";
+ if (m_streamSet) m_t << "</div>";
}
void HtmlCodeGenerator::startFontClass(const char *s)
diff --git a/templates/html/doxygen.css b/templates/html/doxygen.css
index e41b0d7..a34cf48 100644
--- a/templates/html/doxygen.css
+++ b/templates/html/doxygen.css
@@ -206,6 +206,11 @@ div.line {
transition-duration: 0.5s;
}
+div.line:after {
+ content:"\000A";
+ white-space: pre;
+}
+
div.line.glow {
background-color: cyan;
box-shadow: 0 0 10px cyan;