Skip to content

Commit

Permalink
[mdman] Add a test for a code block split across multiple lines in an…
Browse files Browse the repository at this point in the history
… options template
  • Loading branch information
dpaoliello committed Aug 19, 2024
1 parent c956e9f commit a250d27
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/mdman/tests/compare/expected/options.1
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ Flag with optional value.
.RS 4
Alternate syntax for optional value (with required = for disambiguation).
.RE
.sp
\fB\-\-split\-block\fR
.RS 4
An option where the description has a \fBblock statement that is split across multiple lines\fR
.RE
.SH "EXAMPLES"
.sp
.RS 4
Expand Down
4 changes: 4 additions & 0 deletions crates/mdman/tests/compare/expected/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ A description of the command.
<dd class="option-desc">Alternate syntax for optional value (with required = for disambiguation).</dd>


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


</dl>


Expand Down
4 changes: 4 additions & 0 deletions crates/mdman/tests/compare/expected/options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ OPTIONS
Alternate syntax for optional value (with required = for
disambiguation).

--split-block
An option where the description has a block statement that is split
across multiple lines

EXAMPLES
1. An example

Expand Down
5 changes: 5 additions & 0 deletions crates/mdman/tests/compare/includes/options-common.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@ Flag with optional value.
Alternate syntax for optional value (with required = for disambiguation).
{{/option}}

{{#option "`--split-block`"}}
An option where the description has a `block statement
that is split across multiple lines`
{{/option}}

{{/options}}

0 comments on commit a250d27

Please sign in to comment.