summaryrefslogtreecommitdiffstats
path: root/src/definition.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2016-03-17 18:55:09 (GMT)
committeralbert-github <albert.tests@gmail.com>2016-03-17 18:55:09 (GMT)
commit7228bca81e8d054413f85f8758fc13866ab4b85b (patch)
treeff93c234e272871c4e1ccc5f6ba2c0affcdc823b /src/definition.cpp
parentf26cc41d0d3d436c809c293a56c66c1f5f953745 (diff)
downloadDoxygen-7228bca81e8d054413f85f8758fc13866ab4b85b.zip
Doxygen-7228bca81e8d054413f85f8758fc13866ab4b85b.tar.gz
Doxygen-7228bca81e8d054413f85f8758fc13866ab4b85b.tar.bz2
Bug 763720 - Exclusion of a new line at the end of source code file causing nesting of HTML code for function documentation
In case a code fragment does not end with a newline add it explicitly, otherwise following descriptive element might get into the same box.
Diffstat (limited to 'src/definition.cpp')
-rw-r--r--src/definition.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/definition.cpp b/src/definition.cpp
index 795d4f3..86a616c 100644
--- a/src/definition.cpp
+++ b/src/definition.cpp
@@ -878,6 +878,7 @@ bool readCodeFragment(const char *fileName,
}
}
result = transcodeCharacterStringToUTF8(result);
+ if (result.right(1) != "\n") result += "\n";
//fprintf(stderr,"readCodeFragement(%d-%d)=%s\n",startLine,endLine,result.data());
return found;
}