diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-04-26 09:06:00 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-04-26 09:06:00 +0200 |
commit | a27c8b1d9e4fc2aa0ad8b36348fc9c99b9ad2060 (patch) | |
tree | e2cecc3cec5d8d2bef43e741b954cfdb39462a1a | |
parent | 792ea391da2c67fd74bab53e30c9e1d1e62cb76a (diff) | |
download | gnutls-a27c8b1d9e4fc2aa0ad8b36348fc9c99b9ad2060.tar.gz |
doc: fixes for better latex pdf generation [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r-- | doc/cha-gtls-app.texi | 3 | ||||
-rwxr-xr-x | doc/scripts/gdoc | 1 | ||||
-rwxr-xr-x | doc/scripts/mytexi2latex | 6 |
3 files changed, 4 insertions, 6 deletions
diff --git a/doc/cha-gtls-app.texi b/doc/cha-gtls-app.texi index 6fbf490288..811f84db6c 100644 --- a/doc/cha-gtls-app.texi +++ b/doc/cha-gtls-app.texi @@ -1272,9 +1272,6 @@ Catch all which enables all curves from NORMAL priority is CURVE-ALL. Note that the CURVE keyword is kept for backwards compatibility only, for new applications see the GROUP keyword above. -@c @item Certificate type @tab -@c The only option currently is CTYPE-X509. Catch all is CTYPE-ALL. - @end multitable @caption{The supported algorithm keywords in priority strings.} @end float diff --git a/doc/scripts/gdoc b/doc/scripts/gdoc index 5d2d609699..224b83e22a 100755 --- a/doc/scripts/gdoc +++ b/doc/scripts/gdoc @@ -561,6 +561,7 @@ sub output_enum_tex { $param2 = $args{'parameters'}{$parameter}; $param2 =~ s/\#([a-zA-Z\_]+)/{\\it $1}/g; $param2 =~ s/\%([a-zA-Z\_]+)/{\\bf $1}/g; + $param2 =~ s/([0-9]+)\^([0-9]+)/\$\{$1\}\^\{$2\}\$/g; $out = just_highlight($param2); $out =~ s/_/\\_/g; chomp $out; diff --git a/doc/scripts/mytexi2latex b/doc/scripts/mytexi2latex index 80319341e6..cb446e81e7 100755 --- a/doc/scripts/mytexi2latex +++ b/doc/scripts/mytexi2latex @@ -83,7 +83,7 @@ my $pfuncref = \&funcref; my $pshowfunc = \&showfunc; my $pshowfuncdesc = \&showfuncdesc; my $pshowenumdesc = \&showenumdesc; -my $mode; +my $mode = NORMAL; my $num_args = $#ARGV + 1; if ($num_args != 1 || $ARGV[0] eq "-h" || $ARGV[0] eq "--help") { @@ -209,7 +209,7 @@ multitable: if ($line =~ s/\@end example/\\end{example}/g) { $mode = pop(@stack); } - $line =~ s/\@{/{/g; + $line =~ s/\@\{/{/g; $line =~ s/\@}/}/g; $verbatim = 1; @@ -218,7 +218,7 @@ multitable: if ($line =~ s/\@end smallexample/\\end{smallexample}/g) { $mode = pop(@stack); } - $line =~ s/\@{/\{/g; + $line =~ s/\@\{/\{/g; $line =~ s/\@}/\}/g; $verbatim = 1; |