Skip to content

Commit

Permalink
doc: allow literal and emphasis format in doc vs help tests
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jnavila authored and gitster committed Mar 29, 2024
1 parent c42ea60 commit 71d9f5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t/t0450-txt-doc-vs-help.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ txt_to_synopsis () {
-e '/^\[verse\]$/,/^$/ {
/^$/d;
/^\[verse\]$/d;
s/_//g;
s/++//g;
s/`//g;
s/{litdd}/--/g;
s/'\''\(git[ a-z-]*\)'\''/\1/g;
Expand Down

0 comments on commit 71d9f5a

Please sign in to comment.