-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: keep braces when extracting table commands (#4)
- Loading branch information
Showing
4 changed files
with
124 additions
and
12 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,43 @@ | ||
\input{regression-test} | ||
\documentclass{article} | ||
|
||
\ExplSyntaxOn | ||
\debug_on:n { check-declarations , check-expressions , deprecation } | ||
\ExplSyntaxOff | ||
|
||
\usepackage{tabularray} | ||
|
||
\begin{document} | ||
|
||
\SetTblrTracing{+text} | ||
|
||
\START | ||
|
||
% https://github.com/lvjr/tabularray/issues/501 | ||
\BEGINTEST{keep braces when splitting table into cells} | ||
\begin{tblr}{l} | ||
a \\ | ||
{b} \\ | ||
{{c}} \\ | ||
{{{d}}} \\ | ||
{{{{e}}}} | ||
\end{tblr} | ||
|
||
\begin{tblr}{l} | ||
1 & a \\ | ||
2 & {b} \\ | ||
3 & {{c}} \\ | ||
4 & {{{d}}} | ||
\end{tblr} | ||
\ENDTEST | ||
|
||
% https://github.com/muzimuzhi/tabularray-dev/issues/4 | ||
\BEGINTEST{keep braces when extracting table commands} | ||
\begin{tblr}{} | ||
a & {a} & {a}a \\ | ||
\end{tblr} | ||
\ENDTEST | ||
|
||
\end{document} | ||
|
||
\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,41 @@ | ||
This is a generated file for the l3build validation system. | ||
Don't change this file in any respect. | ||
============================================================ | ||
TEST 1: keep braces when splitting table into cells | ||
============================================================ | ||
> The spec list text_1 contains the pairs:. | ||
> {[1][1]} => {a}. | ||
> {[2][1]} => {{b}}. | ||
> {[3][1]} => {{{c}}}. | ||
> {[4][1]} => {{{{d}}}}. | ||
> {[5][1]} => {{{{{e}}}}}. | ||
> The spec list text_1 contains the pairs:. | ||
> {[1][1]} => {1}. | ||
> {[2][1]} => {2}. | ||
> {[3][1]} => {3}. | ||
> {[4][1]} => {4}. | ||
> {[5][1]} => {}. | ||
> {[1][2]} => {a}. | ||
> {[2][2]} => {{b}}. | ||
> {[3][2]} => {{{c}}}. | ||
> {[4][2]} => {{{{d}}}}. | ||
============================================================ | ||
============================================================ | ||
TEST 2: keep braces when extracting table commands | ||
============================================================ | ||
> The spec list text_1 contains the pairs:. | ||
> {[1][1]} => {a}. | ||
> {[2][1]} => {}. | ||
> {[3][1]} => {}. | ||
> {[4][1]} => {}. | ||
> {[5][1]} => {}. | ||
> {[1][2]} => {{a}}. | ||
> {[2][2]} => {}. | ||
> {[3][2]} => {}. | ||
> {[4][2]} => {}. | ||
> {[1][3]} => {{a}a}. | ||
============================================================ | ||
[1 | ||
] (table-split.aux) | ||
*************** | ||
[test] 0 error(s) encountered. |