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/Bx/args.in | 4 ++-- regress/mdoc/Bx/args.out_ascii | 4 ++-- regress/mdoc/Bx/args.out_markdown | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'regress/mdoc/Bx') diff --git a/regress/mdoc/Bx/args.in b/regress/mdoc/Bx/args.in index 32530959..d4479275 100644 --- a/regress/mdoc/Bx/args.in +++ b/regress/mdoc/Bx/args.in @@ -9,7 +9,7 @@ no arguments: .Bx .Pp one standard argument: -.Bx 4.4 +.Bx 4.4 "." .Pp one non-standard argument: .Bx nett @@ -21,6 +21,6 @@ two standard arguments: .Bx 4.3 reno .Pp more arguments: -.Bx 4.3 tahoe and some additional words +.Bx 4.3 tahoe and "Em" some additional words .Pp end of test document diff --git a/regress/mdoc/Bx/args.out_ascii b/regress/mdoc/Bx/args.out_ascii index 9f45970e..24e03ffe 100644 --- a/regress/mdoc/Bx/args.out_ascii +++ b/regress/mdoc/Bx/args.out_ascii @@ -6,7 +6,7 @@ NNAAMMEE DDEESSCCRRIIPPTTIIOONN no arguments: BSD - one standard argument: 4.4BSD + one standard argument: 4.4BSD. one non-standard argument: nettBSD @@ -14,7 +14,7 @@ DDEESSCCRRIIPPTTIIOONN two standard arguments: 4.3BSD-Reno - more arguments: 4.3BSD-Tahoe and some additional words + more arguments: 4.3BSD-Tahoe and _s_o_m_e _a_d_d_i_t_i_o_n_a_l _w_o_r_d_s end of test document diff --git a/regress/mdoc/Bx/args.out_markdown b/regress/mdoc/Bx/args.out_markdown index 1c9fc45d..5450ee51 100644 --- a/regress/mdoc/Bx/args.out_markdown +++ b/regress/mdoc/Bx/args.out_markdown @@ -10,7 +10,7 @@ no arguments: BSD one standard argument: -4\.4BSD +4\.4BSD. one non-standard argument: nettBSD @@ -22,7 +22,7 @@ two standard arguments: 4\.3BSD-Reno more arguments: -4\.3BSD-Tahoe and some additional words +4\.3BSD-Tahoe and *some additional words* end of test document -- cgit v1.2.3