diff mbox series

[v2,2/5] doc: allow literal and emphasis format in doc vs help tests

Message ID 1a4feff2aea2e25dc11cbc83f94d0ac6a40964c5.1711711181.git.gitgitgadget@gmail.com (mailing list archive)
State Accepted
Commit 71d9f5a19f8e6be893c4a0dfb43443f7bc545235
Headers show
Series Doc new guidelines | expand

Commit Message

Jean-Noël AVILA March 29, 2024, 11:19 a.m. UTC
From: =?UTF-8?q?Jean-No=C3=ABl=20Avila?= <jn.avila@free.fr>

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 <jn.avila@free.fr>
---
 t/t0450-txt-doc-vs-help.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/t/t0450-txt-doc-vs-help.sh b/t/t0450-txt-doc-vs-help.sh
index cd3969e852b..69917d7b845 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;