Skip to content

character format application issue #1484

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
TJG-JM opened this issue Apr 21, 2025 · 1 comment
Open

character format application issue #1484

TJG-JM opened this issue Apr 21, 2025 · 1 comment

Comments

@TJG-JM
Copy link

TJG-JM commented Apr 21, 2025

I believe there may be a bug in applying formatting to runs directly. When directly creating character styles and applying them to a run, the document would not look correct. I added a for loop to manually force the style to be respected to resolve, but this seems problematic. If lines 142 & 143 of the attached are commented out, it fails to apply formatting.

code that shows potential bug
##for github check.txt

output w/out commenting:
annotated-procedure.docx

output w/ commenting:
annotated-procedure.docx

associated input files:
original-procedure.docx
previous-entry.docx

@scanny
Copy link
Contributor

scanny commented May 1, 2025

Way too much code @TJG-JM. I'm sure this makes sense to you but I can't take the time to sort through it.

Use these guidelines to reduce the code to a minimal reproducible example and I'll take another look.
https://stackoverflow.com/help/minimal-reproducible-example

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

No branches or pull requests

2 participants