Skip to content

Commit

Permalink
Fix the silly return
Browse files Browse the repository at this point in the history
  • Loading branch information
brucemiller committed Jan 18, 2025
1 parent 55f9489 commit 679c06d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/LaTeXML/Engine/LaTeX.pool.ltxml
Original file line number Diff line number Diff line change
Expand Up @@ -5704,7 +5704,7 @@ sub latexChangeCase {
my ($gullet, $reqcase, $tokens) = @_;
my $case = $reqcase;
$case = 'upper' if $reqcase eq 'sentence' or $reqcase eq 'title';
$gullet->readingFromMouth(LaTeXML::Core::Mouth->new(), sub {
return $gullet->readingFromMouth(LaTeXML::Core::Mouth->new(), sub {
$gullet->unread($tokens);
my @toks = ();
my $inmath = 0;
Expand Down Expand Up @@ -5746,8 +5746,7 @@ sub latexChangeCase {
else {
Debug("SURPRISE: " . Stringify($tok));
push(@toks, $tok); } }
return Tokens(@toks); });
return; }
return Tokens(@toks); }); }

DefMacro('\lx@latex@changecase {} GeneralText', sub {
my ($gullet, $case, $tokens) = @_;
Expand Down

0 comments on commit 679c06d

Please sign in to comment.