From 663544cc0caf9109ea10c33f38b1e07e7a01a575 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sun, 23 Aug 2015 11:25:37 +0200 Subject: 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) --- src/htmlgen.cpp | 2 +- templates/html/doxygen.css | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 << "\n"; + if (m_streamSet) m_t << ""; } 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; -- cgit v0.12