[LTP] [PATCH 2/2] docparse: Unify Description and Algorithm titles

Petr Vorel pvorel@suse.cz
Mon Mar 8 17:01:22 CET 2021


Instead of fixing sources docs unify it during doc generation.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 docparse/testinfo.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docparse/testinfo.pl b/docparse/testinfo.pl
index b5ab02bc1..f3a657d4d 100755
--- a/docparse/testinfo.pl
+++ b/docparse/testinfo.pl
@@ -308,7 +308,7 @@ sub content_all_tests
 
 				# fix formatting for asciidoc [DOCUMENTATION] => *DOCUMENTATION*
 				if ($doc =~ s/^\[(.*)\]$/$1/) {
-					$doc = paragraph(bold($doc));
+					$doc = paragraph(bold(ucfirst(lc($doc))));
 				}
 
 				$content .= "$doc\n";
-- 
2.30.1



More information about the ltp mailing list