-
Notifications
You must be signed in to change notification settings - Fork 138
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
Replace is very "flaky" #40
Comments
After some testing, I think I found the issue. For some reason, the docx file isn't parsed properly or as expected. The library can sometimes ignores parts of a long string, like if you add a lot of white space between the parts of it. Then it can also break strings for some reason. Here's the xml I currently have, check the part with OFFCR, that is supposed to be {OFFCR}: <w:document |
I've encountered a few situations where my placeholder was surely unique but the library still can't see it for some reason. I tried to replicate the same string I currently have on my docx including the same placeholder on my code and use strings.Replace on it and it works just fine.
The text was updated successfully, but these errors were encountered: