summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorwl <wl>2009-02-14 17:21:35 +0000
committerwl <wl>2009-02-14 17:21:35 +0000
commit71ea99d4c8b847766e48883219b38aa3bca74367 (patch)
treeba6ca3699ca9c6ede2ff0d162b65e8cbff931eb4 /NEWS
parent3e5365fb2c256a2d2273d970a54f434305e34371 (diff)
downloadgroff-71ea99d4c8b847766e48883219b38aa3bca74367.tar.gz
Implement a leading spaces macro request, `lsm', in analogy to
`blm'. Implement two new number registers, \n[lsn] and \n[lss], which hold the number of spaces and the horizontal space, respectively, which would be inserted if the macro registered by `lsm' wasn't called. * src/roff/troff/input.cpp (leading_spaces_macro_name, leading_spaces_number, leading_spaces_space): New global variables. (leading_spaces_macro): New function. (process_input_stack) <token::TOKEN_SPACE>: Handle `lsm'. (init_input_requests): Register `lsm', \n[lsn], and \n[lss]. * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo (Leading Spaces Traps): Document new requests and registers.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS12
1 files changed, 12 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index e2f2d660..6b8d432d 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,18 @@
This file describes recent user-visible changes in groff. Bug fixes are not
described. There are more details in the man and info pages.
+VERSION 1.20.2
+==============
+
+Troff
+-----
+
+o The new `lsm' request specifies a macro to be invoked when leading spaces
+ in an input line are encountered (which are removed then). Number
+ registers `lsn' and `lss' hold the number of removed leading spaces and
+ the corresponding horizontal space, respectively.
+
+
VERSION 1.20.1
==============