* See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
-
- sprintf (line, "%*s<?", col, "");
+
+#if PRETTY_FORMAT
+ sprintf (line, "%*s", col, "");
wrbuf_puts (b, c->u.preprocess.target);
for (p = c->u.preprocess.attributes; p; p = p->next)
{
wrbuf_puts (b, c->u.preprocess.target);
for (p = c->u.preprocess.attributes; p; p = p->next)
{
- sprintf (line, "%*s<", col, "");
+#if PRETTY_FORMAT
+ sprintf (line, "%*s", col, "");
if (nodetoidsgml(c, select, b, (col > 40) ? 40 : col+2) < 0)
return -1;
if (nodetoidsgml(c, select, b, (col > 40) ? 40 : col+2) < 0)
return -1;
- sprintf (line, "%*s</%s>\n", col, "", tag);
- wrbuf_write(b, line, strlen(line));
+#if PRETTY_FORMAT
+ sprintf (line, "%*s", col);
+ wrbuf_puts(b, line);
+#endif
+ wrbuf_puts(b, "</");
+ wrbuf_puts(b, tag);
+ wrbuf_puts(b, ">");
+#if PRETTY_FORMAT
+ wrbuf_puts (b, "\n");
+#endif
if (!c->u.data.formatted_text)
{
sprintf(line, "%*s", col, "");
wrbuf_write(b, line, strlen(line));
}
if (!c->u.data.formatted_text)
{
sprintf(line, "%*s", col, "");
wrbuf_write(b, line, strlen(line));
}
if (c->which == DATA1N_comment)
{
wrbuf_write (b, "<!--", 4);
if (c->which == DATA1N_comment)
{
wrbuf_write (b, "<!--", 4);