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

Cyril Hrubis chrubis@suse.cz
Fri Mar 12 11:42:34 CET 2021


Hi!
> 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*
                                                                                  ^
										  This
										  should
										  be
										  *Documentation*

>  				if ($doc =~ s/^\[(.*)\]$/$1/) {
> -					$doc = paragraph(bold($doc));
> +					$doc = paragraph(bold(ucfirst(lc($doc))));
>  				}
>  
>  				$content .= "$doc\n";

Other than that it looks good.

Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list