Issue with viewer: '::before'

Bug #1848858 reported by carmen fierro on 2019-10-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

Calibre 4.02 under win7:
In a book (utf-8) with the following CSS entry

p.ugap::before {
    content: "⚔ ⚔ ⚔";
    display: block;
    text-align: center;
    font-size: smaller;
    letter-spacing: 0.25em;
    margin-bottom: 0.25em;
}

each ⚔ shows as âš” -- which I think is the ASCI/local codepage equivalent of the utf-8 character.

I dare say that the CSS is not read as utf-8 -- in Sigil it is and everything shows as it should.

Thanks!

Attach an EPUB file demonstrating/reproducing the problem to this bug report. You can do that by clicking the "Add attachment or patch" link at the bottom of the bug's page. If the file you are attaching is copyrighted, mark the bug as private. You can do this by clicking the tiny yellow icon next to "This report contains Public information" in the top right area of the bug's page.

 status incomplete

Changed in calibre:
status: New → Incomplete
carmen fierro (cfierrob) wrote :

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: Incomplete → Fix Released
carmen fierro (cfierrob) wrote :

Thanks! That was quick.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments