aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/mdoc/Bx
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
commita20be95dec7797c55257792a32b6b39bdbdfe595 (patch)
treec792fc779fd4c6076766e78fa7644b081e72b26f /regress/mdoc/Bx
parenta81d5d8c62b37fdb8d82d9cebd9cfa044222b9d8 (diff)
downloadmandoc-a20be95dec7797c55257792a32b6b39bdbdfe595.tar.gz
mandoc-a20be95dec7797c55257792a32b6b39bdbdfe595.tar.zst
mandoc-a20be95dec7797c55257792a32b6b39bdbdfe595.zip
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/Bx')
-rw-r--r--regress/mdoc/Bx/args.in4
-rw-r--r--regress/mdoc/Bx/args.out_ascii4
-rw-r--r--regress/mdoc/Bx/args.out_markdown4
3 files changed, 6 insertions, 6 deletions
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