summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-10-15 19:05:43 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-10-15 19:05:43 -0700
commit8eb4688b095bbdadfa05d0b853df662ac653e3d5 (patch)
treecfd3e5f2be60de09793cea305ad4a68f1a4e5866 /lib.h
parent8807a16fe3115e19ce4d65f1c8beb476494ccaec (diff)
downloadtxr-8eb4688b095bbdadfa05d0b853df662ac653e3d5.tar.gz
txr-8eb4688b095bbdadfa05d0b853df662ac653e3d5.tar.bz2
txr-8eb4688b095bbdadfa05d0b853df662ac653e3d5.zip
* match.c (subst_vars): Fix buggy rendering of TXR Lisp expressions
that evaluate to lists. For instance `@(list)` renders to the string "nil", and `@(list 1 2)` renders as "(1 2)". The desired behavior is "" and "1 2", respectively. (do_output_line): In output directives, there is a similar problem. A @(list) in the middle of an output block turns to nil, and a @(list 1 2) renders in parentheses as (1 2). Furthermore, there is the additional problem that no filtering is applied to the interpolated value. These behaviors are subject to the compatibility option, since they change the externally visible behavior of TXR programs. * txr.1: Document that empty lists in @(output) variable substitutions turn into nothing. Document value of 100 for -C option, describing the above issue.
Diffstat (limited to 'lib.h')
0 files changed, 0 insertions, 0 deletions