diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2011-10-21 13:47:07 -0400 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2011-10-21 13:47:07 -0400 |
commit | f421259f06ee0b81754d3f1d453625ff17cb97d7 (patch) | |
tree | 68f4a8370af30022c28f4eaca500ece49f7adea6 /match.c | |
parent | e98d94aa2a8c46c392eec4b7ac664eb989f3c589 (diff) | |
download | txr-f421259f06ee0b81754d3f1d453625ff17cb97d7.tar.gz txr-f421259f06ee0b81754d3f1d453625ff17cb97d7.tar.bz2 txr-f421259f06ee0b81754d3f1d453625ff17cb97d7.zip |
* match.c (v_output): When appending output to a variable,
flatten the previous contents so we can append to a single
string, or to deeply nested list, etc.
* txr.1: Documented these new extensions to next and output.
Diffstat (limited to 'match.c')
-rw-r--r-- | match.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2180,7 +2180,7 @@ static val v_output(match_files_ctx c, match_files_ctx *cout) if (existing) { if (append) { - *cdr_l(existing) = append2(cdr(existing), list_out); + *cdr_l(existing) = append2(flatten(cdr(existing)), list_out); } else { *cdr_l(existing) = list_out; } |