Skip to content

Commit

Permalink
Bug 753909 - Copy and paste of code fragment from CHM merges all past…
Browse files Browse the repository at this point in the history
…ed 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)
  • Loading branch information
albert-github committed Aug 23, 2015
1 parent 5c2b6c2 commit 663544c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/htmlgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions templates/html/doxygen.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 663544c

Please sign in to comment.