Centre multirow cells over their rows
This commit is contained in:
1 parent
e039cfb8a9
commit
8ecbd5e720
5 files changed
+138
-6
No files matched your search
+6
-3
@@ -1908,7 +1908,10 @@ fn expand_multirow(source: &str) -> String {
|
||||
pieces.push(body.trim().to_string());
|
||||
cursor = &cursor[consumed..];
|
||||
}
|
||||
out.push_str(&pieces[2]);
|
||||
out.push_str(&format!(
|
||||
"\\texrramultirow{{{}}}{{{}}}",
|
||||
pieces[0], pieces[2]
|
||||
));
|
||||
rest = cursor;
|
||||
}
|
||||
out.push_str(rest);
|
||||
@@ -11907,8 +11910,8 @@ See \ref{fig:a} and \ref{tab:b}.";
|
||||
let (_, geometry) = geometry_and_body(source);
|
||||
assert_eq!(geometry.tabular.len(), 1);
|
||||
let (_, text, _) = &geometry.tabular[0];
|
||||
assert!(text.contains("Both & a"), "{text}");
|
||||
assert!(!text.contains("multirow"));
|
||||
assert!(text.contains("texrramultirow{2}{Both}"), "{text}");
|
||||
assert!(!text.contains("\\multirow"));
|
||||
let json = preview_json(source).expect("preview");
|
||||
assert!(json.contains(">Both</text>"));
|
||||
assert!(!json.contains("multirow"));
|
||||
|
||||
Reference in new issue
Block a user