aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/mdoc/Eo
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/Eo
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/Eo')
-rw-r--r--regress/mdoc/Eo/empty.in2
-rw-r--r--regress/mdoc/Eo/empty.out_ascii6
-rw-r--r--regress/mdoc/Eo/empty.out_markdown2
-rw-r--r--regress/mdoc/Eo/obsolete.in2
-rw-r--r--regress/mdoc/Eo/obsolete.out_ascii2
-rw-r--r--regress/mdoc/Eo/obsolete.out_markdown2
6 files changed, 8 insertions, 8 deletions
diff --git a/regress/mdoc/Eo/empty.in b/regress/mdoc/Eo/empty.in
index bf637f27..b971b6dc 100644
--- a/regress/mdoc/Eo/empty.in
+++ b/regress/mdoc/Eo/empty.in
@@ -32,7 +32,7 @@ text
all
.Eo <<
text
-.Ec >>
+.Ec >> "Sy" bold
completely empty
.No prefix Ns Eo
.Ec
diff --git a/regress/mdoc/Eo/empty.out_ascii b/regress/mdoc/Eo/empty.out_ascii
index a28e5727..96849bb0 100644
--- a/regress/mdoc/Eo/empty.out_ascii
+++ b/regress/mdoc/Eo/empty.out_ascii
@@ -5,9 +5,9 @@ NNAAMMEE
DDEESSCCRRIIPPTTIIOONN
completely empty closing only >> content only text opening only << no
- opening text>> no content <<>> no closing <<text all <<text>> completely
- empty prefix closing only prefix>> no opening prefixtext>> no closing
- <<prefix stray closing
+ opening text>> no content <<>> no closing <<text all <<text>> bboolldd
+ completely empty prefix closing only prefix>> no opening prefixtext>> no
+ closing <<prefix stray closing
>> end of file
OpenBSD February 1, 2015 OpenBSD
diff --git a/regress/mdoc/Eo/empty.out_markdown b/regress/mdoc/Eo/empty.out_markdown
index e0ed0e9b..506a4a09 100644
--- a/regress/mdoc/Eo/empty.out_markdown
+++ b/regress/mdoc/Eo/empty.out_markdown
@@ -20,7 +20,7 @@ no content
no closing
&lt;&lt;text
all
-&lt;&lt;text&gt;&gt;
+&lt;&lt;text&gt;&gt; **bold**
completely empty
prefixclosing only
prefix&gt;&gt;
diff --git a/regress/mdoc/Eo/obsolete.in b/regress/mdoc/Eo/obsolete.in
index fe0bb087..2640f2aa 100644
--- a/regress/mdoc/Eo/obsolete.in
+++ b/regress/mdoc/Eo/obsolete.in
@@ -11,7 +11,7 @@
initial text
.En enclosed words with Fl flags
middle text
-.En more enclosed words
+.En "(" more enclosed words
final text
.Pp
.Es
diff --git a/regress/mdoc/Eo/obsolete.out_ascii b/regress/mdoc/Eo/obsolete.out_ascii
index bb2f15c5..cba2fc7d 100644
--- a/regress/mdoc/Eo/obsolete.out_ascii
+++ b/regress/mdoc/Eo/obsolete.out_ascii
@@ -6,7 +6,7 @@ NNAAMMEE
DDEESSCCRRIIPPTTIIOONN
no prior Es
- surplus initial text <<enclosed words with --ffllaaggss>> middle text <<more
+ surplus initial text <<enclosed words with --ffllaaggss>> middle text (<<more
enclosed words>> final text
initial text after empty Es final text
diff --git a/regress/mdoc/Eo/obsolete.out_markdown b/regress/mdoc/Eo/obsolete.out_markdown
index 21a3e690..200ea657 100644
--- a/regress/mdoc/Eo/obsolete.out_markdown
+++ b/regress/mdoc/Eo/obsolete.out_markdown
@@ -12,7 +12,7 @@ surplus
initial text
&lt;&lt;enclosed words with **-flags**&gt;&gt;
middle text
-&lt;&lt;more enclosed words&gt;&gt;
+(&lt;&lt;more enclosed words&gt;&gt;
final text
initial text