Skip to content
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

fb2: newline not producing a space between words #1346

Open
tanriol opened this issue Dec 22, 2024 · 0 comments
Open

fb2: newline not producing a space between words #1346

tanriol opened this issue Dec 22, 2024 · 0 comments

Comments

@tanriol
Copy link

tanriol commented Dec 22, 2024

Librera FD: 8.9.182-fdroid
File experiencing problem: https://github.com/rrthomas/hpmor/releases/download/v1.2.14/hpmor.fb2
Screenshot highlighting the missing whitespace:

Partial fb2 text shows that this whitespace directly corresponds to newlines in the FB2 XML document.
image

I haven't managed to dig the intended interpretation from the "specification", but dropping newlines altogether is, IIUC, not typical for processing text in XML. The file being discussed has been generated from HTML with pandoc and I've tested that pandoc converts such lines from HTML to FB2 literally, likely assuming that the FB2 reader normalizes newlines / whitespace just like an HTML renderer would. Attaching a test HTML file and an FB2 produced from it with pandoc.
test.zip

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

1 participant