Skip to content

Commit

Permalink
Bug 763720 - Exclusion of a new line at the end of source code file c…
Browse files Browse the repository at this point in the history
…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 7228bca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/definition.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7228bca

Please sign in to comment.