Skip to content

[Bug] Tag Style Overrides Fix for Pre/Code tags#65

Merged
dfop02 merged 4 commits intorelease/1.1.4from
bug/tag-style-overrides
Feb 23, 2026
Merged

[Bug] Tag Style Overrides Fix for Pre/Code tags#65
dfop02 merged 4 commits intorelease/1.1.4from
bug/tag-style-overrides

Conversation

@dfop02
Copy link
Owner

@dfop02 dfop02 commented Feb 22, 2026

Description

This PR fixes the tag_style_ovrrides for code/pre tags, that was not being applied correctly.
This PR also improves the documentation around custom Word style usage when working with template-based documents.

It clarifies that:

  • Custom styles must already exist in the .docx document being generated.
  • The same Document instance loaded from the template must be passed to the parser and saved.
  • Creating and saving a new Document() will result in losing template-defined custom styles.
  • A warning is logged when a referenced custom style does not exist in the document at generation time.

Issue Reference

Fixes #62

Checklist Before Requesting a Review

  • I have performed a self-review of my code.
  • My code follows the project's coding style and guidelines.
  • I have run tests and verified that all existing and new tests pass.
  • I have added new tests to cover my changes.

@dfop02 dfop02 self-assigned this Feb 22, 2026
@dfop02 dfop02 added bug Something isn't working documentation Improvements or additions to documentation labels Feb 22, 2026
@dfop02 dfop02 changed the base branch from main to release/1.1.4 February 22, 2026 17:48
@dfop02 dfop02 force-pushed the bug/tag-style-overrides branch from c052472 to c067d84 Compare February 22, 2026 18:22
@dfop02 dfop02 force-pushed the bug/tag-style-overrides branch from c067d84 to e47aab9 Compare February 22, 2026 18:53
@dfop02 dfop02 merged commit 34a1da5 into release/1.1.4 Feb 23, 2026
6 checks passed
@dfop02 dfop02 deleted the bug/tag-style-overrides branch February 23, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tag Overrides Not Working for <code>

1 participant