#############################################################
# value substitution before macro expansion, so that
# it works in macro arguments
- s/\@value{($VARRE)}/$value{$1}/eg;
+ s/\@value\{($VARRE)}/$value{$1}/eg;
#############################################################
# macro substitution
$after = '';
}
$args =~ s|\\\\|\\|g;
- $args =~ s|\\{|{|g;
+ $args =~ s|\\\{|{|g;
$args =~ s|\\}|}|g;
if (@{$macros->{$name}->{Args}} > 1)
{
#
# xref
#
- while (/\@(x|px|info|)ref{([^{}]+)(}?)/)
+ while (/\@(x|px|info|)ref\{([^{}]+)(}?)/)
{
# note: Texinfo may accept other characters
($type, $nodes, $full) = ($1, $2, $3);
my $ret;
$level--; # here we start at 0
- if ($name =~ /^appendix/ || defined(@appendix_sec_num))
+ if ($name =~ /^appendix/ || @appendix_sec_num)
{
# appendix style
- if (defined(@appendix_sec_num))
+ if (@appendix_sec_num)
{
&incr_sec_num($level, @appendix_sec_num);
}
else
{
# normal style
- if (defined(@normal_sec_num))
+ if (@normal_sec_num)
{
&incr_sec_num($level, @normal_sec_num);
}