diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-09-11 21:02:32 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-09-11 21:02:32 -0700 |
commit | 716e5255221344aaafc2c1d273832390c5ebb970 (patch) | |
tree | e4f6bd8a4033e6ece2db6a25ec6d175fcde4e35b /txr.1 | |
parent | d1e0e1f15227bd01dbbfcb0a77f261d01764e408 (diff) | |
download | txr-716e5255221344aaafc2c1d273832390c5ebb970.tar.gz txr-716e5255221344aaafc2c1d273832390c5ebb970.tar.bz2 txr-716e5255221344aaafc2c1d273832390c5ebb970.zip |
Semantics change in trim-str function.
* lib.c (trim_str): Trim only newlines and blanks,
not carriage returns, vertical tabs and form feeds.
This is subject to the compatibility option
* txr.1: Doc updated and compatibility note
added.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -18632,8 +18632,7 @@ The function produces a copy of .meta string from which leading and -trailing whitespace is removed. Whitespace consists of spaces, tabs, -carriage returns, linefeeds, vertical tabs and form feeds. +trailing tabs, spaces and newlines are removed. .coNP Function @ chrp .synb @@ -44798,7 +44797,11 @@ were executed in derived-to-base order, opposite to the order of execution of .code :init handlers. Specifying 148 or earlier compatibility provides this -old behavior. +old behavior. Also, until version 148, the +.code trim-str +function stripped leading and trailing whitespace from a string +consisting of not only spaces, tabs and newlines, but also carriage +returns, vertical tabs and form feeds. .IP 145 In versions 144 and 145, \*(TX opened files in text mode on Cygwin, enabling conversion between CR-LF line endings and abstract newline |