Skip to content

Commit

Permalink
extra safety when unreading alignment-related characters for \aligned (
Browse files Browse the repository at this point in the history
  • Loading branch information
dginev authored Aug 12, 2024
1 parent 89babc5 commit c3d682e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/LaTeXML/Package/amsmath.sty.ltxml
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,8 @@ DefPrimitive('\@ams@aligned@bindings', sub {
DefParameterType('alignsafeOptional', sub {
my ($gullet, $default, $inner) = @_;
my ($tok, $value);
{ local $LaTeXML::ALIGN_STATE = 1000000;
$tok = $gullet->readNonSpace; }
local $LaTeXML::ALIGN_STATE = 1000000;
$tok = $gullet->readNonSpace;
if (!defined $tok) { }
elsif (($tok->equals(T_OTHER('[')))) {
$value = $gullet->readUntil(T_OTHER(']')); }
Expand Down

0 comments on commit c3d682e

Please sign in to comment.