summaryrefslogtreecommitdiffstats
path: root/src/markdown.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-01-13 10:03:12 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-01-13 10:03:12 (GMT)
commitdc438879c6bb1475add244b381cb6671316c850c (patch)
tree54c652ea35ece525f8b8cd98ffd640bb77703d12 /src/markdown.cpp
parent737d009a3cb41ceb873f604134b2aef379eecb94 (diff)
downloadDoxygen-dc438879c6bb1475add244b381cb6671316c850c.zip
Doxygen-dc438879c6bb1475add244b381cb6671316c850c.tar.gz
Doxygen-dc438879c6bb1475add244b381cb6671316c850c.tar.bz2
Merge: moved example from 081 to 084, improved check if last char is newline
Diffstat (limited to 'src/markdown.cpp')
-rw-r--r--src/markdown.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp
index 181b01a..74492ea 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -2536,7 +2536,7 @@ QCString processMarkdown(const QCString &fileName,const int lineNr,Entry *e,cons
int refIndent;
// for replace tabs by spaces
QCString s = input;
- if (s.find('\n',s.length()-1) == -1) s += "\n";
+ if (s.at(s.length()-1)!='\n') s += "\n"; // see PR #6766
s = detab(s,refIndent);
//printf("======== DeTab =========\n---- output -----\n%s\n---------\n",s.data());
// then process quotation blocks (as these may contain other blocks)