v1.4.0: enforce white three-line tables and in-place formula replacement - #2
Merged
Conversation
Driven by two real-world failures: table-style firstRow shading surviving into a delivered three-line table, and formulas appended to paragraph ends as italic duplicates instead of replacing the original text in place. - Formula workflow: In-Place Replacement Contract (replace at exact position, original plain text must be gone, no appending/merging/strays) - Three-line table recipe: white-background section (drop w:tblStyle, zero w:tblLook flags, clear every w:shd) - Auditor: TABLE_SHADING (FAIL, resolves styles.xml basedOn/tblStylePr), TABLE_RULES (WARN, top/bottom/insideH/header-thickness), MATH_DUPLICATE (FAIL, OMML text still present as plain text in the same paragraph) - Tests for all three checks; samples regenerated (compliant sample now builds a real explicit three-line table) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the two real-world failures observed in a delivered report:
firstRowconditional shading (living instyles.xml, invisible indocument.xml) survived into the delivered table. New recipe section +TABLE_SHADING(FAIL) auditor check that resolves the referenced table style'sbasedOnchain andtblStylePrconditional formats.……如图 1 所示。F = 44.5 km²L = 15.4 kmL/J^(1/3) = 75.1). New In-Place Replacement Contract in the formula workflow +MATH_DUPLICATE(FAIL) auditor check.Also added
TABLE_RULES(WARN — missing top/bottom rules, row-to-row insideH, header rule not thinner), required reading of the three-line-table recipe whenever a document has tables, two new Must-Fix Audit items, tests for all three checks, and regenerated samples (the compliant sample now builds a real explicit three-line table).CI steps run locally: byte-compile OK, 69/69 tests pass.
🤖 Generated with Claude Code