From 62b697c22984193fb83165fa69fe9f1e0c744340 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 17 Jul 2008 16:36:21 +0000 Subject: [PATCH] Fix framed output. --- doc/reference.html | 4 ++-- mxml.xml | 4 ++-- mxmldoc.c | 15 ++++++++++++--- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/doc/reference.html b/doc/reference.html index 0cf198a..962e8ef 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -1303,10 +1303,10 @@ void mxmlSetWrapMargin (

Parameters

column
-
Column for wrapping
+
Column for wrapping, 0 to disable wrapping

Discussion

-

Wrapping is disabled when "column" is <= 0. +

Wrapping is disabled when "column" is 0.

mxmlWalkNext

diff --git a/mxml.xml b/mxml.xml index 5658037..fabfe55 100644 --- a/mxml.xml +++ b/mxml.xml @@ -1023,12 +1023,12 @@ The node is not changed if it is not a text node. Set the the wrap margin when saving XML data. -Wrapping is disabled when "column" is <= 0. +Wrapping is disabled when "column" is 0. @since Mini-XML 2.3@ int - Column for wrapping + Column for wrapping, 0 to disable wrapping diff --git a/mxmldoc.c b/mxmldoc.c index 4f40b5a..96dd549 100644 --- a/mxmldoc.c +++ b/mxmldoc.c @@ -2936,13 +2936,22 @@ write_html(const char *section, /* I - Section */ return; } - write_html_head(out, section, title, cssfile); + fputs("\n" + "\n" + "\n" + "", out); + write_string(out, title, OUTPUT_HTML); + fputs("\n", out); - fputs("\n", out); + if (section) + fprintf(out, "\n", section); + + fputs("\n" + "\n", out); fprintf(out, "\n", basename); fprintf(out, "\n", basename); fputs("\n" - "\n" "\n", out); fclose(out);