mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-27 11:57:36 -06:00
A Document whose styles.default_chr.size is None resolves its text at 11 pt (resolve.rs falls back to 11.0), but the writer left w:sz out of w:docDefaults/w:rPrDefault and the reader fills an omitted size with 10 pt. So WordCraft's own save and reopen changed the effective default size from 11 pt to 10 pt with no edit in between. Name the resolver's fallback DEFAULT_FONT_SIZE, use it in both resolver sites, and have the writer emit it when the default size is unset. The reader is unchanged, so a file from another program that has no size is read exactly as before. The written size is the resolver's final fallback and not what Normal resolves to, so a style that sets a size is unaffected. Adds four tests in tests/it/default_size.rs; two fail without the writer change. Co-authored-by: narain1 <narain1@users.noreply.github.com>
34 lines
651 B
Rust
34 lines
651 B
Rust
mod bidi;
|
|
mod bidi_runs;
|
|
mod cell_margin_inheritance;
|
|
mod char_units;
|
|
mod citations;
|
|
mod complex_script_inheritance;
|
|
mod content_control_save_cost;
|
|
mod content_controls;
|
|
mod custom_xml;
|
|
mod default_size;
|
|
mod drawing_payload;
|
|
mod east_asian_lang;
|
|
mod east_asian_layout;
|
|
mod fixtures;
|
|
mod glossary;
|
|
mod legacy_forms;
|
|
mod ligatures;
|
|
mod malformed;
|
|
mod passthrough;
|
|
mod positional_tabs;
|
|
mod privacy;
|
|
mod roundtrip;
|
|
mod row_property_exceptions;
|
|
mod section_form_protection;
|
|
mod section_page_number_type;
|
|
mod section_text_direction;
|
|
mod section_valign;
|
|
mod settings_merge;
|
|
mod text_boxes;
|
|
mod toc_ranges;
|
|
mod vml_shapes;
|
|
mod word_xml;
|
|
mod wordml2003_write;
|