termux-packages/packages/oleo/texi2html.in.patch
Leonid Pliushch b45fc730dc move some packages from unstable repo
* geth
* jbig2dec
* myrepos
* oleo
* samefile
* sdcv
* yadm
2019-09-08 17:25:28 +03:00

42 lines
1.2 KiB
Diff

--- src/texi2html.in 2018-02-22 08:34:18.770561548 +0000
+++ src/doc/texi2html.in 2018-02-22 08:35:13.413226481 +0000
@@ -2752,7 +2752,7 @@
s/\@refill\s+//g;
# other substitutions
&simple_substitutions;
- s/\@value{($VARRE)}/$value{$1}/eg;
+ s/\@value\{($VARRE)\}/$value{$1}/eg;
s/\@footnote\{/\@footnote$docu_doc\{/g; # mark footnotes, cf. pass 4
#
# analyze the tag again
@@ -3174,7 +3174,7 @@
#
# xref
#
- while (/\@(x|px|info|)ref{([^{}]+)(}?)/) {
+ while (/\@(x|px|info|)ref\{([^{}]+)(\}?)/) {
# note: Texinfo may accept other characters
($type, $nodes, $full) = ($1, $2, $3);
($before, $after) = ($`, $');
@@ -3790,9 +3790,9 @@
my $ret;
$level--; # here we start at 0
- if ($name =~ /^appendix/ || defined(@appendix_sec_num)) {
+ if ($name =~ /^appendix/ || defined()) {
# appendix style
- if (defined(@appendix_sec_num)) {
+ if (defined()) {
&incr_sec_num($level, @appendix_sec_num);
} else {
@appendix_sec_num = ('A', 0, 0, 0);
@@ -3800,7 +3800,7 @@
$ret = join('.', @appendix_sec_num[0..$level]);
} else {
# normal style
- if (defined(@normal_sec_num))
+ if (defined())
{
&incr_sec_num($level, @normal_sec_num);
}