Skip to content

Commit

Permalink
consistently used defined check for char in Mouth
Browse files Browse the repository at this point in the history
  • Loading branch information
dginev committed Sep 28, 2023
1 parent 65f7eff commit 9f2645f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/LaTeXML/Core/Mouth.pm
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ sub handle_escape { # Read control sequence
# Bit I believe that he does NOT mean within control sequences
my $cs = "\\" . $ch; # I need this standardized to be able to lookup tokens (A better way???)
if ((defined $cc) && ($cc == CC_LETTER)) { # For letter, read more letters for csname.
while ((($ch, $cc) = getNextChar($self)) && (length($ch) > 0) && ($cc == CC_LETTER)) {
while ((($ch, $cc) = getNextChar($self)) && (defined $ch) && ($cc == CC_LETTER)) {
$cs .= $ch; }
# We WILL skip spaces, but not till next token is read (in case catcode changes!!!!)
$$self{skipping_spaces} = 1;
Expand Down

0 comments on commit 9f2645f

Please sign in to comment.