aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-10-05 09:38:45 -0700
committerJohn MacFarlane <[email protected]>2023-10-05 09:38:45 -0700
commitddabd85eb8a60aa7d6081824271ab59fff7b3088 (patch)
treed3ca9f6db4ddb995982ab520dfc3c93db49d16c3 /test
parentc33b4581c94c71fe0ffc7702efa7f6a4fdac23d2 (diff)
Man writer: Fix some spacing issues around links.
See #9120. We need to use `\c` before a `.UR` or `.MT`, to avoid an extra space, and also after. To ensure that a space at the beginning of the following line doesn't get swallowed up, we escape it with `\`.
Diffstat (limited to 'test')
-rw-r--r--test/command/8508.md2
-rw-r--r--test/writer.man34
2 files changed, 21 insertions, 15 deletions
diff --git a/test/command/8508.md b/test/command/8508.md
index 576a95eea..25c6ae785 100644
--- a/test/command/8508.md
+++ b/test/command/8508.md
@@ -8,10 +8,12 @@ SEE ALSO
^D
.SH SEE ALSO
.IP \[bu] 2
+\c
.UR https://en.wikipedia.org/wiki/Milk
Milk
.UE \c
.IP \[bu] 2
+\c
.UR https://en.wikipedia.org/wiki/Extended_Backus–Naur_form
EBNF
.UE \c
diff --git a/test/writer.man b/test/writer.man
index 9dd49b15f..584db3ec0 100644
--- a/test/writer.man
+++ b/test/writer.man
@@ -483,9 +483,9 @@ So is `pine.'
.PP
`He said, \[lq]I want to go.\[rq]' Were you alive in the 70\[cq]s?
.PP
-Here is some quoted `\f[CR]code\f[R]' and a \[lq]quoted
-link
+Here is some quoted `\f[CR]code\f[R]' and a \[lq]\c
.UR http://example.com/?foo=1&bar=2
+quoted link
.UE \c
\[rq].
.PP
@@ -604,7 +604,10 @@ URL and title
.PP
with_underscore
.PP
-Email link (mailto:[email protected])
+\c
+Email link
+.ME \c
.PP
Empty.
.SS Reference
@@ -630,39 +633,40 @@ Foo bar.
.PP
Foo biz.
.SS With ampersands
-Here\[cq]s a link with an ampersand in the
-URL
+Here\[cq]s a \c
.UR http://example.com/?foo=1&bar=2
+link with an ampersand in the URL
.UE \c
-.
+\&.
.PP
-Here\[cq]s a link with an amersand in the link text:
+Here\[cq]s a link with an amersand in the link text: \c
.UR http://att.com/
AT&T
.UE \c
-.
+\&.
.PP
Here\[cq]s an inline link.
.PP
Here\[cq]s an inline link in pointy braces.
.SS Autolinks
-With an ampersand:
+With an ampersand: \c
.UR http://example.com/?foo=1&bar=2
-.UE
+.UE \c
.IP \[bu] 2
In a list?
.IP \[bu] 2
+\c
.UR http://example.com/
.UE \c
.IP \[bu] 2
It should.
.PP
-An e-mail address:
+An e-mail address: \c
.ME \c
.RS
.PP
-Blockquoted:
+Blockquoted: \c
.UR http://example.com/
.UE \c
.RE
@@ -717,11 +721,11 @@ the first line of each block.
.SS [3]
.PP
This is \f[I]easier\f[R] to type.
-Inline notes may contain links
+Inline notes may contain \c
.UR http://google.com
+links
.UE \c
- and \f[CR]]\f[R] verbatim
-characters, as well as [bracketed text].
+\ and \f[CR]]\f[R] verbatim characters, as well as [bracketed text].
.SS [4]
.PP
In quote.