aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/mdoc/Sh
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-04-02 15:04:36 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-04-02 15:04:36 +0000
commit735c1e543343b638b339077b91a5874260cdf14b (patch)
tree930eb455cb29acfe6b5a98c93a46c9c4525d7bc6 /regress/mdoc/Sh
parentbc6d8c884c63e49aafa7894399d3d7060108b4ec (diff)
downloadmandoc-735c1e543343b638b339077b91a5874260cdf14b.tar.gz
mandoc-735c1e543343b638b339077b91a5874260cdf14b.tar.zst
mandoc-735c1e543343b638b339077b91a5874260cdf14b.zip
Copy tagged strings before marking hyphens as breakable.
For example, this makes ":tCo-processes" work in ksh(1).
Diffstat (limited to 'regress/mdoc/Sh')
-rw-r--r--regress/mdoc/Sh/tag.in6
-rw-r--r--regress/mdoc/Sh/tag.out_ascii5
-rw-r--r--regress/mdoc/Sh/tag.out_html4
-rw-r--r--regress/mdoc/Sh/tag.out_lint4
-rw-r--r--regress/mdoc/Sh/tag.out_markdown6
-rw-r--r--regress/mdoc/Sh/tag.out_tag3
6 files changed, 21 insertions, 7 deletions
diff --git a/regress/mdoc/Sh/tag.in b/regress/mdoc/Sh/tag.in
index da8a884a..c44abbbf 100644
--- a/regress/mdoc/Sh/tag.in
+++ b/regress/mdoc/Sh/tag.in
@@ -1,5 +1,5 @@
-.\" $OpenBSD: tag.in,v 1.2 2020/04/01 20:10:18 schwarze Exp $
-.Dd $Mdocdate: April 1 2020 $
+.\" $OpenBSD: tag.in,v 1.3 2020/04/02 14:55:29 schwarze Exp $
+.Dd $Mdocdate: April 2 2020 $
.Dt SH-TAG 1
.Os
.Sh NAME
@@ -19,6 +19,8 @@ Text introducing examples.
.Tg example
.Ss Subsection
Example text.
+.Ss Sub-section
+More example text.
.Sh "\& WEIRD SECTION "
Text in weird section.
.Sh \ \&
diff --git a/regress/mdoc/Sh/tag.out_ascii b/regress/mdoc/Sh/tag.out_ascii
index 309cb559..8e6cce9d 100644
--- a/regress/mdoc/Sh/tag.out_ascii
+++ b/regress/mdoc/Sh/tag.out_ascii
@@ -20,6 +20,9 @@ EEXXAAMMPPLLEESS
SSuubbsseeccttiioonn
Example text.
+ SSuubb--sseeccttiioonn
+ More example text.
+
WWEEIIRRDD SSEECCTTIIOONN
Text in weird section.
@@ -28,4 +31,4 @@ EEXXAAMMPPLLEESS
ENDTEST
-OpenBSD April 1, 2020 OpenBSD
+OpenBSD April 2, 2020 OpenBSD
diff --git a/regress/mdoc/Sh/tag.out_html b/regress/mdoc/Sh/tag.out_html
index 49c45fdb..d99c6d4d 100644
--- a/regress/mdoc/Sh/tag.out_html
+++ b/regress/mdoc/Sh/tag.out_html
@@ -12,6 +12,10 @@
<h2 class="Ss" id="example"><a class="permalink" href="#example">Subsection</a></h2>
<p class="Pp">Example text.</p>
</section>
+<section class="Ss">
+<h2 class="Ss" id="Sub-section"><a class="permalink" href="#Sub-section">Sub-section</a></h2>
+<p class="Pp">More example text.</p>
+</section>
</section>
<section class="Sh">
<h1 class="Sh" id="WEIRD_SECTION"><a class="permalink" href="#WEIRD_SECTION">
diff --git a/regress/mdoc/Sh/tag.out_lint b/regress/mdoc/Sh/tag.out_lint
index cfb1dfad..63f9d2e4 100644
--- a/regress/mdoc/Sh/tag.out_lint
+++ b/regress/mdoc/Sh/tag.out_lint
@@ -1,3 +1,3 @@
mandoc: tag.in:14:2: WARNING: duplicate section title: Sh DESCRIPTION
-mandoc: tag.in:22:7: WARNING: tab in filled text
-mandoc: tag.in:22:22: WARNING: tab in filled text
+mandoc: tag.in:24:7: WARNING: tab in filled text
+mandoc: tag.in:24:22: WARNING: tab in filled text
diff --git a/regress/mdoc/Sh/tag.out_markdown b/regress/mdoc/Sh/tag.out_markdown
index 75a1e58e..4b87b144 100644
--- a/regress/mdoc/Sh/tag.out_markdown
+++ b/regress/mdoc/Sh/tag.out_markdown
@@ -26,6 +26,10 @@ Text introducing examples.
Example text.
+## Sub-section
+
+More example text.
+
# WEIRD SECTION
Text in weird section.
@@ -36,4 +40,4 @@ Text in section with empty header.
ENDTEST
-OpenBSD - April 1, 2020
+OpenBSD - April 2, 2020
diff --git a/regress/mdoc/Sh/tag.out_tag b/regress/mdoc/Sh/tag.out_tag
index 04b11882..b4adea63 100644
--- a/regress/mdoc/Sh/tag.out_tag
+++ b/regress/mdoc/Sh/tag.out_tag
@@ -4,4 +4,5 @@ Subsection 9
DESCRIPTION 14
examples 17
example 20
-WEIRD_SECTION 23
+Sub-section 23
+WEIRD_SECTION 26