summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-01-13 09:56:21 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-01-13 09:56:21 (GMT)
commit737d009a3cb41ceb873f604134b2aef379eecb94 (patch)
treed8456d9f7910ae37484b15383ea87064d145252e /src
parent52b9dd486d176e091b9aade39d6d6db7774d63da (diff)
parent5697a9e8dbb298aede810c1ce6daded80bf40952 (diff)
downloadDoxygen-737d009a3cb41ceb873f604134b2aef379eecb94.zip
Doxygen-737d009a3cb41ceb873f604134b2aef379eecb94.tar.gz
Doxygen-737d009a3cb41ceb873f604134b2aef379eecb94.tar.bz2
Merge branch 'feature/bug_pre_markdown' of https://github.com/albert-github/doxygen into albert-github-feature/bug_pre_markdown
Diffstat (limited to 'src')
-rw-r--r--src/markdown.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp
index 5253333..181b01a 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -2535,7 +2535,9 @@ QCString processMarkdown(const QCString &fileName,const int lineNr,Entry *e,cons
out.clear();
int refIndent;
// for replace tabs by spaces
- QCString s = detab(input,refIndent);
+ QCString s = input;
+ if (s.find('\n',s.length()-1) == -1) s += "\n";
+ s = detab(s,refIndent);
//printf("======== DeTab =========\n---- output -----\n%s\n---------\n",s.data());
// then process quotation blocks (as these may contain other blocks)
s = processQuotations(s,refIndent);