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/Ms/font.in | 2 +- regress/mdoc/Ms/font.out_ascii | 2 +- regress/mdoc/Ms/font.out_markdown | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'regress/mdoc/Ms') diff --git a/regress/mdoc/Ms/font.in b/regress/mdoc/Ms/font.in index dc841740..24c2c236 100644 --- a/regress/mdoc/Ms/font.in +++ b/regress/mdoc/Ms/font.in @@ -6,5 +6,5 @@ .Nd changing fonts inside the mathematical symbol macro .Sh DESCRIPTION normal text -.Ms bold\\fIemphasis\\fPback | after : punctuation +.Ms bold\\fIemphasis\\fPback | after ":" punctuation "Em" italic trailing text diff --git a/regress/mdoc/Ms/font.out_ascii b/regress/mdoc/Ms/font.out_ascii index 280aa407..50ca3b2a 100644 --- a/regress/mdoc/Ms/font.out_ascii +++ b/regress/mdoc/Ms/font.out_ascii @@ -4,6 +4,6 @@ NNAAMMEE MMss--ffoonntt - changing fonts inside the mathematical symbol macro DDEESSCCRRIIPPTTIIOONN - normal text bboolldd_e_m_p_h_a_s_i_sbbaacckk | aafftteerr: ppuunnccttuuaattiioonn trailing text + normal text bboolldd_e_m_p_h_a_s_i_sbbaacckk | aafftteerr: ppuunnccttuuaattiioonn _i_t_a_l_i_c trailing text OpenBSD November 20, 2014 OpenBSD diff --git a/regress/mdoc/Ms/font.out_markdown b/regress/mdoc/Ms/font.out_markdown index 7b04400b..b554083a 100644 --- a/regress/mdoc/Ms/font.out_markdown +++ b/regress/mdoc/Ms/font.out_markdown @@ -7,7 +7,7 @@ MS-FONT(1) - General Commands Manual # DESCRIPTION normal text -**bold*emphasis*back** | **after**: **punctuation** +**bold*emphasis*back** | **after**: **punctuation** *italic* trailing text OpenBSD - November 20, 2014 -- cgit v1.2.3-56-ge451