Follow-up Comment #6, bug #66481 (group groff): My concern is a real-world one, and _groff_ itself trips over it.
Exhibit:
In "fallbacks.tmac" we have the following.
. fchar \[u2012] \^\v'-.3m'\l'\w"\0"u'\v'+.3m'\^\" figure dash
That's a "general argument" (`\w`) inside a (partially) "numeric argument"
(`\l`).
Are people willing to live with this proposed patch?
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 61029bab6..36eecdc3f 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -2609,8 +2609,11 @@ static bool is_char_usable_as_delimiter(int c)
case '(':
case ')':
case '.':
- case '|':
return false;
+ case '|':
+ error("support for '|' as an argument delimiter is deprecated and"
+ " will be withdrawn in a future release");
+ // fall through
default:
return true;
}
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66481>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
