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

Update based on comment by D.v.Heesch
  • Loading branch information
albert-github committed Mar 18, 2016
1 parent 7228bca commit c2c9ed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/definition.cpp
Expand Up @@ -878,7 +878,7 @@ bool readCodeFragment(const char *fileName,
}
}
result = transcodeCharacterStringToUTF8(result);
if (result.right(1) != "\n") result += "\n";
if (!result.isEmpty() && result.at(result.length()-1)!='\n') result += "\n";
//fprintf(stderr,"readCodeFragement(%d-%d)=%s\n",startLine,endLine,result.data());
return found;
}
Expand Down

0 comments on commit c2c9ed6

Please sign in to comment.