mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-20 17:16:01 +00:00
ST_OnOff (ECMA-376 17.17.4) is a boolean plus the words on and off, but the toggle reader only counted 0/false/none as off — so <w:b w:val="off"/> (a legal spelling written by non-Word producers) imported as bold, and the same for <w:i>, <w:strike>, <w:caps>, <w:isLgl> and <w:u>. Add "off" to both off-lists. Regression test: off_valued_toggles_stay_off — on main the off run imports bold; with the patch it stays regular and an on run stays bold.