diff --git a/scripts/docs/update_web_vep_plugins_documentation.pl b/scripts/docs/update_web_vep_plugins_documentation.pl index 0d9b5253e..51660c708 100644 --- a/scripts/docs/update_web_vep_plugins_documentation.pl +++ b/scripts/docs/update_web_vep_plugins_documentation.pl @@ -290,6 +290,11 @@ sub read_plugin_file { my $code_block = 0; my $code_script = 0; + my $ulist = 0; + my $ulist_newline = 0; # prepare to ignore newlines + my $olist = 0; + my $olist_newline = 0; # prepare to ignore newlines + my $table = 0; my $table_newline = 0; # prepare to ignore newlines my $tr_class = ''; @@ -308,6 +313,21 @@ sub read_plugin_file { } else { if ($desc ne '' || $line !~ /^\s+$/) { + if ($line =~ /^\s+[-*+] (.*)/) { + $line = ($ulist ? '' : '
' . $line . '
'; $code_block = 0; } } + if ($line =~ /^\s+\(?([0-9]+)[\)\.] (.*)/) { + $line = ($olist ? '' : '' . $line . '
' if $code_block; } } chomp($line);