diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-10-23 17:29:30 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-10-23 17:29:30 (GMT) |
commit | 97e88b47f122b06272be599526c777d389ec1111 (patch) | |
tree | 00501c5b7552644f543325435b3805cd943fd8be /src/markdown.cpp | |
parent | d2f42d48e25872f3fb345b0f1ae7c9f7268d384b (diff) | |
parent | 33341fe5fb8048411acea0276219a69be06fe02d (diff) | |
download | Doxygen-97e88b47f122b06272be599526c777d389ec1111.zip Doxygen-97e88b47f122b06272be599526c777d389ec1111.tar.gz Doxygen-97e88b47f122b06272be599526c777d389ec1111.tar.bz2 |
Merge branch 'master' of github.com:doxygen/doxygen
Diffstat (limited to 'src/markdown.cpp')
-rw-r--r-- | src/markdown.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp index e395fd9..7f6dc9b 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -2068,13 +2068,17 @@ void Markdown::writeOneLineHeaderOrRuler(const char *data,int size) m_out.addStr("</"+hTag+">\n"); } } - else // nothing interesting -> just output the line + else if (size>0) // nothing interesting -> just output the line { - m_out.addStr(data,size); + int tmpSize = size; + if (data[size-1] == '\n') tmpSize--; + m_out.addStr(data,tmpSize); + if (hasLineBreak(data,size)) { - m_out.addStr("<br>\n"); + m_out.addStr("<br>"); } + if (tmpSize != size) m_out.addChar('\n'); } } |