summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;