Preserve alignment boundaries when matching hash-brace macros
This commit is contained in:
1 parent
307303d596
commit
862801ee5f
5 files changed
+57
No files matched your search
@@ -135,6 +135,17 @@ fn templates_execute_macros_groups_assignments_hooks_and_nested_lists() {
|
||||
compare(body);
|
||||
}
|
||||
}
|
||||
#[test]
|
||||
fn hash_brace_macro_delimiters_preserve_alignment_cell_boundaries() {
|
||||
compare(
|
||||
r"\def\prefix#{\relax}\def\argument#1:#2#{#2#1}
|
||||
\setbox0=\vbox{\halign{#&#\cr
|
||||
A\prefix{B}&C\cr
|
||||
D\argument A:B{C}&DEF\cr
|
||||
}}",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn vertical_alignment_uses_vertical_cells_and_horizontal_rows() {
|
||||
for spec in ["", "to40pt", "spread5pt"] {
|
||||
|
||||
Reference in new issue
Block a user