Skip to content
Browse files

ensure newlines after window->text

git-svn-id: http://beta.visl.sdu.dk/svn/visl/tools/vislcg3/trunk@8224 cb2587b3-b7ff-0310-8c81-a2a651690ada
  • Loading branch information...
1 parent b1fb7b1 commit 903d601f4bf4aa90346eb02e968c6aa407ae3095 unhammer committed Apr 16, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/GrammarApplicator.cpp
View
3 src/GrammarApplicator.cpp
@@ -459,6 +459,9 @@ void GrammarApplicator::printCohort(Cohort *cohort, UFILE *output) {
void GrammarApplicator::printSingleWindow(SingleWindow *window, UFILE *output) {
if (!window->text.empty()) {
u_fprintf(output, "%S", window->text.c_str());
+ if (!ISNL(window->text[window->text.length()-1])) {
+ u_fputc('\n', output);
+ }
}
uint32_t cs = (uint32_t)window->cohorts.size();

0 comments on commit 903d601

Please sign in to comment.
Something went wrong with that request. Please try again.