sumatrapdfreader / sumatrapdf

SumatraPDF reader
http://www.sumatrapdfreader.org
GNU General Public License v3.0
13.46k stars 1.71k forks source link

The 1st paragraph of the chapter has no indent in fb2 file #3297

Open GCRaistlin opened 1 year ago

GCRaistlin commented 1 year ago
<title>
<p>CHAPTER 1</p>
</title>
<p>This is the 1st paragraph.</p>
<p>This is the 2nd paragraph.</p>

looks like this: 2023-02-22

GitHubRulesOK commented 1 year ago

version your using (only pre-release can be "fixed") sample of file/page for wider testing in context?

GCRaistlin commented 1 year ago

The issue is still present in build 15313. Sample: Harrison, Harry - Captive Universe - 1969.fb2.zip

avorobey commented 1 year ago

This isn't a bug, it's a conscious decision on part of MuPDF developers. This line specifies that indentation will apply to all paragraphs but the first. If it's changed to "p" from "p+p" at the beginning, the first paragraph will be indented, too.

Calibre shows all paragraphs indented. Apparently it is a contentious issue whether the first paragraph should be indented. If you feel strongly that it should, might be a good idea to make your case to MuPDF developers.

GCRaistlin commented 1 year ago

How does MuPDF concern SumatraPDF?

avorobey commented 1 year ago

@GCRaistlin MuPDF is the open-source library SumatraPDF uses for parsing and rendering some (but not all) of the formats it supports, in particular PDF and FB2.