Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-16-2023, 06:34 PM   #1
WV-Mike
Connoisseur
WV-Mike began at the beginning.
 
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;
}
WV-Mike is offline   Reply With Quote
Old 09-16-2023, 06:40 PM   #2
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,107
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by WV-Mike View Post
all_day_june_21_1979.xhtml" (line 129, col 1):
What is the code on line 129 of that file?
Karellen is offline   Reply With Quote
Advert
Old 09-16-2023, 06:56 PM   #3
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,513
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, 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?
DNSB is offline   Reply With Quote
Old 09-16-2023, 07:17 PM   #4
WV-Mike
Connoisseur
WV-Mike began at the beginning.
 
Posts: 66
Karma: 10
Join Date: Jul 2023
Device: None
An error occurred while parsing the CSS: Premature end of grammar (expecting: :

Quote:
Originally Posted by Karellen View Post
What is the code on line 129 of that file?
It is:
<div style="list">

Thanks,
WV-Mike
WV-Mike is offline   Reply With Quote
Old 09-16-2023, 07:19 PM   #5
WV-Mike
Connoisseur
WV-Mike began at the beginning.
 
Posts: 66
Karma: 10
Join Date: Jul 2023
Device: None
Quote:
Originally Posted by DNSB View Post
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?
No inline style anywhere in the ePub.
I cleaned them out.

Thanks,
WV-Mike
WV-Mike is offline   Reply With Quote
Advert
Old 09-16-2023, 07:21 PM   #6
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,107
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by WV-Mike View Post
It is:
<div style="list">

Thanks,
WV-Mike
Should be <div class="list">

Essentially, if you are referring to something in the css file, it is a "class". If you are using inline code, then it is "style"
Karellen is offline   Reply With Quote
Old 09-16-2023, 10:03 PM   #7
azimuth
Enthusiast
azimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with others
 
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;
azimuth is offline   Reply With Quote
Old 09-16-2023, 10:29 PM   #8
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,107
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Oh, yes. Good catch. Missing semi-colons.
Karellen is offline   Reply With Quote
Old 09-16-2023, 11:34 PM   #9
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,513
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by azimuth View Post
It may be CSS .poem and/or .list (the semi-colon).
line-height: 1.4em;
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!
DNSB is offline   Reply With Quote
Old 09-17-2023, 06:44 AM   #10
WV-Mike
Connoisseur
WV-Mike began at the beginning.
 
Posts: 66
Karma: 10
Join Date: Jul 2023
Device: None
Quote:
Originally Posted by Karellen View Post
Should be <div class="list">

Essentially, if you are referring to something in the css file, it is a "class". If you are using inline code, then it is "style"
Duh...
Why didn't I see that?
I will edit that and run Pagina again.
Thanks,
WV-Mike
WV-Mike is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 07:42 AM.


MobileRead.com is a privately owned, operated and funded community.