CentreForDigitalHumanities / CentreForDigitalHumanities/tscan
Paragraph breaks in word to txt conversion
- Dominant language
- C++
- Stars
- 19
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
There are cases where word documents show paragraph breaks with a whiteline but the resulting txt file users a single `\n` character, so there are no whitelines between paragraphs. Using `\n\n` would match the original document better.
This seemingly happens when word makes whitelines between paragraphs with styling, so there is only a single return.
It is not an acceptable solution to replace every `\n` in the output with `\n\n` as this would cause unexpected results.
Contributor guide
No contributing guide indexed for this repository
Research direction
No source file, test, or entry point is identified in the issue. Start by locating the Word-to-text conversion path and an input that preserves styled paragraph whitespace; done means paragraph breaks that visibly include a blank line become double newlines without changing ordinary single-line breaks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100