Skip to content

Commit a250d27

Browse files
committed
[mdman] Add a test for a code block split across multiple lines in an options template
1 parent c956e9f commit a250d27

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

crates/mdman/tests/compare/expected/options.1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ Flag with optional value.
6969
.RS 4
7070
Alternate syntax for optional value (with required = for disambiguation).
7171
.RE
72+
.sp
73+
\fB\-\-split\-block\fR
74+
.RS 4
75+
An option where the description has a \fBblock statement that is split across multiple lines\fR
76+
.RE
7277
.SH "EXAMPLES"
7378
.sp
7479
.RS 4

crates/mdman/tests/compare/expected/options.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ A description of the command.
5858
<dd class="option-desc">Alternate syntax for optional value (with required = for disambiguation).</dd>
5959

6060

61+
<dt class="option-term" id="option-options---split-block"><a class="option-anchor" href="#option-options---split-block"></a><code>--split-block</code></dt>
62+
<dd class="option-desc">An option where the description has a <code>block statement that is split across multiple lines</code></dd>
63+
64+
6165
</dl>
6266

6367

crates/mdman/tests/compare/expected/options.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ OPTIONS
4343
Alternate syntax for optional value (with required = for
4444
disambiguation).
4545

46+
--split-block
47+
An option where the description has a block statement that is split
48+
across multiple lines
49+
4650
EXAMPLES
4751
1. An example
4852

crates/mdman/tests/compare/includes/options-common.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,9 @@ Flag with optional value.
1111
Alternate syntax for optional value (with required = for disambiguation).
1212
{{/option}}
1313

14+
{{#option "`--split-block`"}}
15+
An option where the description has a `block statement
16+
that is split across multiple lines`
17+
{{/option}}
18+
1419
{{/options}}

0 commit comments

Comments
 (0)