Skip to content

Conversation

@papeh
Copy link
Contributor

@papeh papeh commented Jan 20, 2026

This change is Reviewable

papeh added 2 commits January 20, 2026 17:07
The paragraph element is required for all paragraph styles,
even if it is empty (LT-20393).

Also add `fwdictconfig` to the solution spelling dictionary.
During Dictionary View import, existing styles were being cleared
before importing new styles, so if the new styles could not be
imported, the stylesheet would be left empty.

To fix this, import styles without clearing the stylesheet first.
This also simplifies the import process, which was likely complicated
to compensate for incomplete exports pre-9.3.5.

* Export <paragraph> elements for paragraph styles, even if empty
  (should be the case for only Normal, as all other paragraph styles
  should have at least a basedOn attribute).
* Export 'structure' and 'use' attributes for each Style.
* If 'structure' and 'use' attributes are missing on a known style,
  use the pre-import values.
* Catch more exceptions during style import.
* Unit test style import

POSSIBLE FUTURE WORK:
* Rewrite the style import to handle importing shared
  user styles differently from loading new installed styles
* Check for style importability in
  DictConfigImportCtlr.PrepareImport
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants