-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make keyval_parse alignment safe (fixes #896)
- Loading branch information
Showing
4 changed files
with
79 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
\documentclass{minimal} | ||
\input{regression-test} | ||
\RequirePackage[enable-debug]{expl3} | ||
\ExplSyntaxOn | ||
\debug_on:n { check-declarations , deprecation , log-functions } | ||
\ExplSyntaxOff | ||
\begin{document} | ||
\START | ||
\AUTHOR{Bruno Le Floch} | ||
\ExplSyntaxOn | ||
|
||
\OMIT | ||
\cs_new:Npn \test:nn #1#2 | ||
{ | ||
\TEST { while~ searching~ for~ noalign/omit } | ||
{ | ||
\tex_halign:D | ||
{ | ||
\TYPE{0} ## \TYPE{1} \tex_cr:D | ||
\keyval_parse:nnn {#1} {#2} { a, a=b&c } | ||
\tex_cr:D | ||
} | ||
} | ||
\TEST { with~ relax } | ||
{ | ||
\tex_halign:D | ||
{ | ||
\TYPE{0} ## \TYPE{1} \tex_cr:D | ||
\scan_stop: \keyval_parse:nnn {#1} {#2} { a, a=b&c } | ||
\tex_cr:D | ||
} | ||
} | ||
} | ||
\TIMO | ||
|
||
\test:nn \use_none:n \use_none:nn | ||
\test:nn { \scan_stop: \use_none:n } { \scan_stop: \use_none:nn } | ||
|
||
|
||
\END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
This is a generated file for the LaTeX (2e + expl3) validation system. | ||
Don't change this file in any respect. | ||
Author: Bruno Le Floch | ||
============================================================ | ||
TEST 1: while searching for noalign/omit | ||
============================================================ | ||
0 | ||
1 | ||
============================================================ | ||
============================================================ | ||
TEST 2: with relax | ||
============================================================ | ||
0 | ||
1 | ||
============================================================ | ||
============================================================ | ||
TEST 3: while searching for noalign/omit | ||
============================================================ | ||
0 | ||
1 | ||
============================================================ | ||
============================================================ | ||
TEST 4: with relax | ||
============================================================ | ||
0 | ||
1 | ||
============================================================ |