ReplaceText in Header/Footer broke in v 2.5.0
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
Research direction
Start at Document.ReplaceText and follow the Paragraph.ReplaceTextCore and Container.ReplaceTextCore paths named in the stack trace. Reproduce the example against versions 2.5.0 and 2.4.1, then add a regression test showing that replacing %LoanNum% in a header or footer removes the search value while preserving the body behavior.
Written by the indexing model from the issue text.
Description
Its adding the text but not removing the search value in the header/footer if I step over the error. Its fine in the body. Rolling back to 2.4.1 or 2.4.0 works fine.
doc.ReplaceText(new StringReplaceTextOptions() { SearchValue = "%LoanNum%", NewValue = loan.LoanNum ?? "" });
header shows this if I step to next line in code:
Loan# %LoanNum%123456
at Xceed.Document.NET.Paragraph.InsertText(Int32 index, String value, Boolean trackChanges, Formatting formatting)
at Xceed.Document.NET.Paragraph.ReplaceTextCore(Match singleMatch, StringReplaceTextOptions replaceTextOptions)
at Xceed.Document.NET.Paragraph.ReplaceText(StringReplaceTextOptions replaceTextOptions)
at Xceed.Document.NET.Container.ReplaceTextCore(ReplaceTextOptionsBase replaceTextOptions)
at Xceed.Document.NET.Document.ReplaceText(StringReplaceTextOptions replaceTextOptions)
...
- Dominant language
- C#
- Stars
- 1.9k
- Forks
- 483
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from xceedsoftware/DocX
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
xceedsoftware/DocX#489 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
xceedsoftware/DocX#488 · 1 comment · 1 reaction ·
-
keep format Open
Difficulty 3/5 1-2 days Newbie friendliness 25/100
xceedsoftware/DocX#487 · 3 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
xceedsoftware/DocX#485 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
xceedsoftware/DocX#482 · 4 comments ·
All issues in xceedsoftware/DocX
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·