|
|
Thread Tools | Search this Thread |
09-16-2023, 06:34 PM | #1 |
Connoisseur
Posts: 66
Karma: 10
Join Date: Jul 2023
Device: None
|
An error occurred while parsing the CSS: Premature end of grammar (expecting: :).
Greetings,
Pagina returned this error: ERROR (CSS-008) at "e_book_mnc-1970s-reports - no_lists.epub/OEBPS/Text/all_day_june_21_1979.xhtml" (line 129, col 1): An error occurred while parsing the CSS: Premature end of grammar (expecting: . I have not had this error before so apparently I did something which was unintended. Editor: Sigil 1.9.3 Here is the CSS: body { display: block; font-size: 1em; margin: 0 0 0 0; padding: 0 0 0 0; text-indent: 0; widows: 1; orphans: 1; } p { text-indent: 0; margin: 0 0 0 0; padding: 0 0 0 0; } .center { text-align: center; } .right { text-align: right; margin-top: 1em; } h1 { font-family: "SmallCaps", sans-serif; font-size: 1.3em; font-weight: bold; text-align: center; margin-top: 0; } @font-face { font-family: "SmallCaps"; font-weight: bold; font-style: normal; font-variant: small-caps; src: url(../Fonts/Fontin-SmallCaps.otf); } div.container { text-align: center; } .poem { margin: auto; width: 80%; padding: 10px; line-height: 1.4em } .list { margin-bottom: 2em; line-height: 1.4em } blockquote { margin-top: 1em; margin-right: 1.5em; margin-bottom: 1em; margin-left: 1.5em; } |
09-16-2023, 06:40 PM | #2 |
Wizard
Posts: 1,164
Karma: 4917718
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
|
09-16-2023, 06:56 PM | #3 |
Bibliophagist
Posts: 36,697
Karma: 146499190
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Given that the stylesheet you posted is less than 100 lines, I suspect the error is in all_day_june_21_1979.xhtml around line 129. Is there an inline style there?
|
09-16-2023, 07:17 PM | #4 |
Connoisseur
Posts: 66
Karma: 10
Join Date: Jul 2023
Device: None
|
An error occurred while parsing the CSS: Premature end of grammar (expecting: :
|
09-16-2023, 07:19 PM | #5 |
Connoisseur
Posts: 66
Karma: 10
Join Date: Jul 2023
Device: None
|
|
09-16-2023, 07:21 PM | #6 |
Wizard
Posts: 1,164
Karma: 4917718
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
|
09-16-2023, 10:03 PM | #7 |
Enthusiast
Posts: 33
Karma: 2538
Join Date: Aug 2023
Location: NW US
Device: none
|
It may be CSS .poem and/or .list (the semi-colon).
line-height: 1.4em; |
09-16-2023, 10:29 PM | #8 |
Wizard
Posts: 1,164
Karma: 4917718
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Oh, yes. Good catch. Missing semi-colons.
|
09-16-2023, 11:34 PM | #9 |
Bibliophagist
Posts: 36,697
Karma: 146499190
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
The last entry before the closing } does not require the ;. OTOH, I always use it since if you modify the CSS and add another line, for me, it's all too easy to forget to add the ; on what is now the second to last line. Doh!
|
09-17-2023, 06:44 AM | #10 |
Connoisseur
Posts: 66
Karma: 10
Join Date: Jul 2023
Device: None
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
4.5: Parsing failed: EntityRef: expecting ';' | ajki | Editor | 5 | 12-10-2019 01:38 PM |
ebook reader: blob error expecting text | rutmang | Calibre | 8 | 08-26-2017 08:52 AM |
An error occurred while parsing the CSS & one other | Alda | Sigil | 3 | 06-21-2016 01:44 PM |
Flight Crew: Premature end of document | icallaci | Sigil | 5 | 12-01-2015 03:18 PM |
PRS-300 an error occurred while downloading the software | Samel25 | Sony Reader | 7 | 12-27-2009 12:55 PM |