Fixed bug: Wrong last char processing in handle_alt_font

This commit is contained in:
Alexandr Prenko 2010-05-22 01:17:50 +03:00 committed by Slava Zanko
parent 738fed4ffb
commit 9722a476e6

View File

@ -409,7 +409,7 @@ sub handle_alt_font($)
{ {
shift @p; shift @p;
# Don't change font if we are at the end # Don't change font if we are at the end
if ($#p) if (@p)
{ {
$alt_state = $alt_state ? 0 : 1; $alt_state = $alt_state ? 0 : 1;
$buffer .= $font[$alt_state]; $buffer .= $font[$alt_state];