Skip to content

Commit

Permalink
return the tokens in GeneralText, strange oversight
Browse files Browse the repository at this point in the history
  • Loading branch information
dginev committed Aug 16, 2019
1 parent 9df53b6 commit 0777c96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/LaTeXML/Package/TeX.pool.ltxml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ DefParameterType('GeneralText', sub {
my ($gullet) = @_;
my $open = $gullet->readXToken;
if ($open->equals(T_BEGIN)) {
return scalar($gullet->readBalanced); }
return $gullet->readBalanced; }
else {
Error('expected', '{', $gullet,
"Expected <general text> here");
Expand Down Expand Up @@ -254,7 +254,7 @@ DefParameterType('EExpanded', sub {
my $token = $gullet->readXToken(0);
my @tokens = ();
if ($token->getCatcode == CC_BEGIN) {
return scalar($gullet->readBalanced(1)); }
return $gullet->readBalanced(1); }
else {
return $token; } },
reversion => sub {
Expand Down

0 comments on commit 0777c96

Please sign in to comment.