From a20be95dec7797c55257792a32b6b39bdbdfe595 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 30 May 2017 16:22:03 +0000 Subject: Macro argument quoting does not prevent recognition of punctuation and of called macros. This bug affects almost all macros, and fixing it simplifies the code. It is amazing that the bogus ARGS_QWORD feature got implemented in the first place, and then carrier along for more than eight years without anybody ever noticing that it was pointless. Reported by Leah Neukirchen , found on Void Linux. --- regress/mdoc/Cd/punct.in | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 regress/mdoc/Cd/punct.in (limited to 'regress/mdoc/Cd/punct.in') diff --git a/regress/mdoc/Cd/punct.in b/regress/mdoc/Cd/punct.in new file mode 100644 index 00000000..9a072c0c --- /dev/null +++ b/regress/mdoc/Cd/punct.in @@ -0,0 +1,42 @@ +.Dd August 21, 2014 +.Dt CD-PUNCT 1 +.Os OpenBSD +.Sh NAME +.Nm Cd-punct +.Nd punctuation handling by the Cd macro +.Sh DESCRIPTION +closing punctuation +.Cd a ) +only one +.Cd ) +only more than one +.Cd ) ) +middle +.Cd a ) z +start +.Cd ) z +dot +.Cd . z +comma +.Cd , z +semicolon +.Cd ; z +colon +.Cd : z +quest +.Cd ? z +excl +.Cd ! z +paren +.Cd ) z +bracket +.Cd ] z +bar +.Cd | m +op paren +.Cd ( a +op bracket +.Cd [ a +.Pp +quoted punctuation: +.Cd a "(" b "|" c ")" d "." "Em" italic . -- cgit v1.2.3-56-ge451