[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #42675] \} considered as macro argument regarding register .$
From: |
anonymous |
Subject: |
[bug #42675] \} considered as macro argument regarding register .$ |
Date: |
Thu, 03 Jul 2014 21:35:26 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0 |
URL:
<http://savannah.gnu.org/bugs/?42675>
Summary: \} considered as macro argument regarding register
.$
Project: GNU troff
Submitted by: None
Submitted on: Thu 03 Jul 2014 09:35:26 PM UTC
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
(Attention: This may or may not be a bug! It could have been intentionally be
introduced to groff to implement traditional nroff behavior perfectly. In this
case it should be added to the documentation only.)
If a macro is used as the last statement of a conditional statement block (a
block enclosed in \{ and \}), the closing \} is on the same line as the macro
call and there is white space before \} the register .$ is increased by 1.
How to reproduce (thanks to Ingo Schwarze):
Minimal input file:
.de count_args
\\n(.$
..
.if n \{.count_args\}
.if n \{.count_args \}
.if n \{.count_args foo\}
.if n \{.count_args foo \}
Run this through:
groff -Wall -Tascii
Output with groff-1.22.2 on OpenBSD:
0 1 1 2
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42675>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #42675] \} considered as macro argument regarding register .$,
anonymous <=