summaryrefslogtreecommitdiffstats
path: root/src/definition.cpp
diff options
context:
space:
mode:
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;
}