mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-25 20:14:31 +01:00
* craft-docx: keep a table style's w:tblInd on read and save A table style's own indent was dropped on read, so it was gone on save. pandoc's Table style sets it to 0, and Word for Mac places a table whose style chain sets no indent about 5.4 pt further right than one set to 0. craft-wordmodel gains TableStyleParts::indent, merged through basedOn. The reader takes a dxa indent (nil is 0; pct and auto set none) and the writer emits it in schema order, 0 included. Part of storytold/wordcraft#5767. * craft-docx: a table style's w:tblInd without w:w is 0 CT_TblWidth's w:w defaults to 0, so the style resets a based-on style's indent instead of inheriting it. The test helper now fails when a saved style is missing rather than matching an empty string. * craft-docx: the tblInd override test checks the base sets an indent Without it the test would pass if the reader dropped the base style's indent, since there would be nothing to override.
61 lines
1.2 KiB
Rust
61 lines
1.2 KiB
Rust
// The code came from an app whose lints allow this.
|
|
#![allow(clippy::type_complexity)]
|
|
mod alt_chunks;
|
|
mod bidi;
|
|
mod bidi_runs;
|
|
mod border_lines;
|
|
mod cell_margin_inheritance;
|
|
mod char_units;
|
|
mod citations;
|
|
mod comment_save_cost;
|
|
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 element_budget;
|
|
mod emphasis_marks;
|
|
mod fixtures;
|
|
mod font_table;
|
|
mod glossary;
|
|
mod heading_levels;
|
|
mod kashida;
|
|
mod latin_theme_slots;
|
|
mod legacy_forms;
|
|
mod ligatures;
|
|
mod line_numbering;
|
|
mod locked_canvas;
|
|
mod malformed;
|
|
mod missing_pictures;
|
|
mod nested_block_controls;
|
|
mod note_comments;
|
|
mod partial_table_margins;
|
|
mod passthrough;
|
|
mod picture_links;
|
|
mod positional_tabs;
|
|
mod privacy;
|
|
mod roundtrip;
|
|
mod row_property_exceptions;
|
|
mod run_props;
|
|
mod section_form_protection;
|
|
mod section_metadata_preservation;
|
|
mod section_page_number_type;
|
|
mod section_text_direction;
|
|
mod section_valign;
|
|
mod settings_merge;
|
|
mod strict_drawings;
|
|
mod table_style_indent;
|
|
mod text_alignment;
|
|
mod text_boxes;
|
|
mod theme_font_slots;
|
|
mod toc_ranges;
|
|
mod twips_wrap;
|
|
mod undefined_style;
|
|
mod vml_shapes;
|
|
mod word_xml;
|
|
mod wordml2003_write;
|
|
mod wps_fallback;
|