summaryrefslogtreecommitdiffstats
path: root/regress/mdoc/Ad
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-05-30 16:22:03 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-05-30 16:22:03 +0000
commitf9f4c363c58d629451c4b9a44815112814c91e0e (patch)
tree7ee2addae474eb4c48659e3b3571f23629b43419 /regress/mdoc/Ad
parentdebd68a8f3b16460c3f97da77580fc510b61fbb7 (diff)
downloadmandoc-f9f4c363c58d629451c4b9a44815112814c91e0e.tar.gz
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 <leah at vuxu dot org>, found on Void Linux.
Diffstat (limited to 'regress/mdoc/Ad')
-rw-r--r--regress/mdoc/Ad/font.in2
-rw-r--r--regress/mdoc/Ad/font.out_ascii2
-rw-r--r--regress/mdoc/Ad/font.out_markdown2
3 files changed, 3 insertions, 3 deletions
diff --git a/regress/mdoc/Ad/font.in b/regress/mdoc/Ad/font.in
index 104bc194..df84458b 100644
--- a/regress/mdoc/Ad/font.in
+++ b/regress/mdoc/Ad/font.in
@@ -6,5 +6,5 @@
.Nd changing fonts inside the address macro
.Sh DESCRIPTION
normal text
-.Ad emphasis\\fBbold\\fPback | after : punctuation
+.Ad emphasis\\fBbold\\fPback | after ":" punctuation "Sy" bold
trailing text
diff --git a/regress/mdoc/Ad/font.out_ascii b/regress/mdoc/Ad/font.out_ascii
index e829efbd..b86ab465 100644
--- a/regress/mdoc/Ad/font.out_ascii
+++ b/regress/mdoc/Ad/font.out_ascii
@@ -4,6 +4,6 @@ NNAAMMEE
AAdd--ffoonntt - changing fonts inside the address macro
DDEESSCCRRIIPPTTIIOONN
- normal text _e_m_p_h_a_s_i_sbboolldd_b_a_c_k | _a_f_t_e_r: _p_u_n_c_t_u_a_t_i_o_n trailing text
+ normal text _e_m_p_h_a_s_i_sbboolldd_b_a_c_k | _a_f_t_e_r: _p_u_n_c_t_u_a_t_i_o_n bboolldd trailing text
OpenBSD November 20, 2014 OpenBSD
diff --git a/regress/mdoc/Ad/font.out_markdown b/regress/mdoc/Ad/font.out_markdown
index 365add62..ed3b5901 100644
--- a/regress/mdoc/Ad/font.out_markdown
+++ b/regress/mdoc/Ad/font.out_markdown
@@ -7,7 +7,7 @@ AD-FONT(1) - General Commands Manual
# DESCRIPTION
normal text
-*emphasis**bold**back* | *after*: *punctuation*
+*emphasis**bold**back* | *after*: *punctuation* **bold**
trailing text
OpenBSD - November 20, 2014