Track two-column class options in the document model

This commit is contained in:
gloamxun committed 2026-10-20 01:23:55 +08:00
1 parent fb361b7df9
commit 3afa8dc6c1
2 files changed
+9

No files matched your search

@@ -1121,6 +1121,12 @@ impl Parser {
}
expanded::FrontendEventKind::Geometry(settings) => {
apply_class_font_size(&mut self.document, settings);
if settings
.split(",")
.any(|option| matches!(option.trim(), "iicol" | "twocolumn"))
{
self.document.columns = 2;
}
apply_geometry(&mut self.document, settings);
}
expanded::FrontendEventKind::TextStyleStart(style) => self.begin_style(*style),