From: Jean-Noël Avila Date: Fri, 29 Mar 2024 11:19:38 +0000 (+0000) Subject: doc: allow literal and emphasis format in doc vs help tests X-Git-Tag: v2.45.0-rc0~42^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=71d9f5a19f8e6be893c4a0dfb43443f7bc545235;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t0450-txt-doc-vs-help.sh b/t/t0450-txt-doc-vs-help.sh index cd3969e852..69917d7b84 100755 --- a/t/t0450-txt-doc-vs-help.sh +++ b/t/t0450-txt-doc-vs-help.sh @@ -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;