From 7228bca81e8d054413f85f8758fc13866ab4b85b Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 17 Mar 2016 19:55:09 +0100 Subject: 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. --- src/definition.cpp | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v0.12