summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-03-08 15:31:49 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-03-08 15:31:49 +0200
commit742112b28be7bebcfe2925d9a4c94c051e99fc03 (patch)
tree85cd57f87398d9548ac625dc0e0792c9c18d7b71
parentc2fdf95d6870ce661ecc97f955c98d5323d28315 (diff)
Add newline after closing root element tag
-rw-r--r--genx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/genx.c b/genx.c
index 8a1e8e3..75c3b49 100644
--- a/genx.c
+++ b/genx.c
@@ -2088,6 +2088,9 @@ genxStatus genxEndDocument(genxWriter w)
if (w->sequence != SEQUENCE_POST_DOC)
return w->status = GENX_SEQUENCE_ERROR;
+ /* Write a newline after the closing tag. */
+ SendCheck (w, "\n");
+
if ((w->status = (*w->sender->flush)(w->userData)) != GENX_SUCCESS)
return w->status;