[Okular-devel] [okular] [Bug 359059] New: FictionBook: Incorrect whitespace treatment

Sergio via KDE Bugzilla bugzilla_noreply at kde.org
Sat Feb 6 10:41:01 UTC 2016


https://bugs.kde.org/show_bug.cgi?id=359059

            Bug ID: 359059
           Summary: FictionBook: Incorrect whitespace treatment
           Product: okular
           Version: 0.20.3
          Platform: Ubuntu Packages
               URL: http://pok.heliohost.org/unix/t.fb2
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: okular-devel at kde.org
          Reporter: sergio.pokrovskij at gmail.com

1. I could not find the "FictionBook Backend" in the menu. So I am writing to
"general".
2. My Synaptic does not show any update for my "Version 0.19.3; Using KDE
Development Platform 4.13.3" nor "Fiction Book Backend Version 0.1.5"; these
version too are not available in the bugtracker menu.

3. THE PROBLEM. When presenting a Fictionbook file Okular does not collapse
extra spaces between <p> and </p>; it does not treat line breaks in the source
text as a space. As a result a structured source text is rendered with unwanted
spaces and newlines. This is a deviation from XML Spec (Section 2.10: White
Space).

4. Another problem is that the <text-author> element is silently ignored.

Reproducible: Always

Steps to Reproduce:
1. Please download a test book (1.2k):   http://pok.heliohost.org/unix/t.fb2
2. Open t.fb2 in Okular.



Actual Results:  
What I see with Okular is   http://pok.heliohost.org/unix/okular.png
Please note unwanted line break after "One"; unwanted spaces before "two" and
"six".
Please note the missing attribution of the quotation.

Expected Results:  
The expected (correct) rendition (by CoolReader) is shown at
http://pok.heliohost.org/unix/cr3.png

Basically, something like this:

,----
| One two three.
| Four five six.
| Nine.
| Ten.
| 
| ,----
| | In editing XML documents, it is often convenient to use “white
| | space” (spaces, tabs, and blank lines) to set apart the markup for
| | greater readability. Such white space is typically not intended
| | for inclusion in the delivered version of the document.
| `---- XML 1.0 Spec, 2.10 (White Space Handling)
`----

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list