Permalink
Browse files

Bug 763720 - Exclusion of a new line at the end of source code file c…

…ausing 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.
  • Loading branch information...
albert-github committed Mar 17, 2016
1 parent f26cc41 commit 7228bca81e8d054413f85f8758fc13866ab4b85b
Showing with 1 addition and 0 deletions.
  1. +1 −0 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;
}

0 comments on commit 7228bca

Please sign in to comment.