Skip to content

Commit 71d9f5a

Browse files
jnavilagitster
authored andcommitted
doc: allow literal and emphasis format in doc vs help tests
As the new formatting of literal and placeholders is introduced, the synopsis in the man pages can now hold additional markup with respect to the command help. Signed-off-by: Jean-Noël Avila <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c42ea60 commit 71d9f5a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

t/t0450-txt-doc-vs-help.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ txt_to_synopsis () {
5959
-e '/^\[verse\]$/,/^$/ {
6060
/^$/d;
6161
/^\[verse\]$/d;
62-
62+
s/_//g;
63+
s/++//g;
64+
s/`//g;
6365
s/{litdd}/--/g;
6466
s/'\''\(git[ a-z-]*\)'\''/\1/g;
6567

0 commit comments

Comments
 (0)