Fix off-by-one in arguments of substr() that ate first letter of .SY,
.EX and .L text.
This commit is contained in:
parent
875d72a00f
commit
f71b9a6de2
2 changed files with 5 additions and 5 deletions
|
@ -24,20 +24,20 @@ procline:
|
||||||
if (/^\.SY../) {
|
if (/^\.SY../) {
|
||||||
# $i = $_ =~ "\"" && ($RLENGTH = length($&), $RSTART = length($`)+1);
|
# $i = $_ =~ "\"" && ($RLENGTH = length($&), $RSTART = length($`)+1);
|
||||||
# $str = substr($_, $i + 1, length($_) - $i - 1);
|
# $str = substr($_, $i + 1, length($_) - $i - 1);
|
||||||
$str = substr($_,5);
|
$str = substr($_,4);
|
||||||
$str = &htmlify($str);
|
$str = &htmlify($str);
|
||||||
printf "<samp>[##:##] </samp><KBD>%s</KBD><p>\n", $str;
|
printf "<samp>[##:##] </samp><KBD>%s</KBD><p>\n", $str;
|
||||||
next line;
|
next line;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (/^\.EX../) {
|
if (/^\.EX../) {
|
||||||
$str = substr($_, 5);
|
$str = substr($_, 4);
|
||||||
printf "<br><samp>[##:##] </samp><kbd>%s</kbd><p>\n", &htmlify($str);
|
printf "<br><samp>[##:##] </samp><kbd>%s</kbd><p>\n", &htmlify($str);
|
||||||
next line;
|
next line;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (/^\.L../) {
|
if (/^\.L../) {
|
||||||
$str = substr($_, 4);
|
$str = substr($_, 3);
|
||||||
printf "<h2>%s</h2>\n", &htmlify($str);
|
printf "<h2>%s</h2>\n", &htmlify($str);
|
||||||
next line;
|
next line;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,14 +25,14 @@ procline:
|
||||||
if (/^\.SY../) {
|
if (/^\.SY../) {
|
||||||
# $i = $_ =~ "\"" && ($RLENGTH = length($&), $RSTART = length($`)+1);
|
# $i = $_ =~ "\"" && ($RLENGTH = length($&), $RSTART = length($`)+1);
|
||||||
# $str = substr($_, $i + 1, length($_) - $i - 1);
|
# $str = substr($_, $i + 1, length($_) - $i - 1);
|
||||||
$str = substr($_,5);
|
$str = substr($_,4);
|
||||||
$str = &htmlify($str);
|
$str = &htmlify($str);
|
||||||
printf "<samp>[##:##] </samp><KBD>%s</KBD><p>\n", $str;
|
printf "<samp>[##:##] </samp><KBD>%s</KBD><p>\n", $str;
|
||||||
next line;
|
next line;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (/^\.EX../) {
|
if (/^\.EX../) {
|
||||||
$str = substr($_, 5);
|
$str = substr($_, 4);
|
||||||
printf "<br><samp>[##:##] </samp><kbd>%s</kbd><p>\n", &htmlify($str);
|
printf "<br><samp>[##:##] </samp><kbd>%s</kbd><p>\n", &htmlify($str);
|
||||||
next line;
|
next line;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue