ascii: Print syntax in output single-spaced.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 23 Apr 2011 05:29:19 +0000 (22:29 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 23 Apr 2011 05:29:19 +0000 (22:29 -0700)
commit5d8fa2ae8c6e7d890570585aedec66bd51630814
tree3a8c9cab1057217326b635ef0c3f26dd05b0ca2d
parent0d70eff1e5dcd89a73f09ce6bc999ccbec8234b5
ascii: Print syntax in output single-spaced.

When SET PRINTBACK=ON was in effect, the ASCII output driver would
put a blank line between successive lines of syntax, because each line
was output separately.  This commit fixes that, by causing the output
core to combine successive syntax output items into a single item that
contains multiple lines of text.  This was essentially what the HTML
output driver was doing anyhow, so putting this into the core also
allows removing the corresponding logic from the HTML driver.
src/language/lexer/lexer.c
src/output/driver.c
src/output/html.c
tests/output/ascii.at