Commit 593325f9 authored by Christian Hergert's avatar Christian Hergert

tokeninputstream: try harder to suppress extraneous newlines

Keeping the output succinct is fairly important to good template output.
This tries a bit harder to suppress extra newlines and it very well might
take some additional tweaking. But it doesn't seem to break any of the
test applications so far.
parent 7816c975
......@@ -309,7 +309,7 @@ tmpl_token_input_stream_read_token (TmplTokenInputStream *self,
if (!(text = tmpl_token_input_stream_read_tag (self, &len, cancellable, error)))
return NULL;
self->swallow_newline = self->last_was_text_with_newline;
self->swallow_newline = TRUE;
self->last_was_text_with_newline = FALSE;
return tmpl_token_new_generic (text);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment