|
|
#1 | |
|
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Mar 2013
Device: none
|
need help with an error:
Sigil crashed when I tried to insert an em dash. When I reopened, I got this message: Quote:
<p class="chapstart"> Just like her life.</p> </body> </html> I am afraid of losing data so don't want to ask Sigil to fix automatically. How do I fix this error? Thank you! |
|
|
|
|
|
|
#2 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,712
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
Probably your mdash is on the wrong side of the tag
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Mar 2013
Device: none
|
Thank you for the quick response. The em dash was in the middle of a paragraph nowhere near line 115 so I don't think it's connected. It's just that I was adding the em dash (I did it via the keyboard) when Sigil crashed so thought I should include that info.
Sigil won't let me copy/paste but says: cannot perform html updates since the file is not well formed. Sigil also gave me a message about the p tag but won't let me copy/paste. Last edited by lipstick; 05-08-2013 at 05:35 PM. Reason: add info |
|
|
|
|
|
#4 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,712
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
BTW I gave you a slight off steer. 115 is a blank line. your problem is probably on 114 There is a chance you split tag pairs <div> <p>stuff</div></p>
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
|
#5 | |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 534
Karma: 2178910
Join Date: Dec 2012
Location: Bangkok, Thailand today
Device: iPhone 5/iPad 1&2/Surface Pro/Kindle PW
|
On a slightly different note:
Are you using the to create an indent in your paragraph?? Quote:
eg. in CSS: .chapstart {text-indent:0} p {text-indent:1.2em} in html: <p class="chapstart">Just like her life.</p> <p>yadda yadda yadda</p> Cheers,
__________________
Dion "Gnihcnip" - the act of "reverse pinching" to expand/zoom. Pronounced "Niknip" (the "g" and "h" are silent). "Live long and prosper." ~ Spock "What's that goat doing up in the clouds? " ~ Pilot
|
|
|
|
|
|
|
#6 | |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 308
Karma: 1489094
Join Date: Nov 2011
Device: none
|
Quote:
h1 + p {text-indent:0;} |
|
|
|
|
|
|
#7 |
|
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Mar 2013
Device: none
|
ducks, turtle & wombat, thank you for taking the time to help the stranded. Love your animal kingdom but I'm lipstick so you can see that even tho I wrote a book about a baby rhino, I'm nowhere in your league. I'm a novelist & when it comes to coding, just call me "clueless" (or even much, much worse + expletives) and you'd be right!
ducks—I don't see a <div> tag so not sure how to follow your direx. turtle—this is a novel (Decades) which was professionally formatted for me several years ago so don't know why he made the formatting choices he did at that time. I'm revising/updating the text so used Sigil to make the changes. All went well until the crash! Are you saying that I should add the line <p>yadda yadda yadda</p> after the last line of the chapter which is "Just like her life."? Won't that add the words: yadda yadda yadda? wombat—Wish I could automate the whole d*mn thing! :-) Here's a copy of the last lines of code starting with line 105. Is there a clue here of what's gone wrong? Code:
<p class="chapstart"> Then she got up to leave. The meeting was over and she picked up her bag and briefcase and headed toward the door. It was almost quarter to one and Nat Bain stood up. He was leaner than Barbara had thought and slightly shorter. </p> <p class="chapstart"> “Lunch?” he said unexpectedly.</p> <p class="chapstart"> Barbara hesitated. Was Nat Bain asking her to lunch? Or was he asking her something else? Was he asking if she would have sex with him?</p> <p class="chapstart"> The Barbara Roser of the Fifties had been so untried, the thought wouldn’t have occurred to her. The Barbara Roser of the Sixties, testing new liberties, might have taken him up on the implication. But this was the Seventies, and Barbara, more experienced, more disillusioned, had lived and learned.</p> <p class="chapstart"> She agreed to have lunch with him but lunch didn’t turn out the way she’d imagined.</p> <p class="chapstart"> Just like her life.</p> </body> </html> Last edited by theducks; 05-09-2013 at 09:08 AM. Reason: wrapped in code tg |
|
|
|
|
|
#8 |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,712
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
I don't see it (the error) eitherdiv on the wrong side of a p was just an example of a split tag (pair), not what I expected yours to be. There are tags that MUST close before closing other kinds of tags (H#, P, Div, Blockquote to name a few) Sometimes the problem is WAY back (which is why I chose DIV ).You might open a BQ or a Div , the do a whole bunch of P's then you need to close the BQ or Div. Basically, the error is telling us that you have run out of code without the close(s) being accomplished. Think NESTED BODY is the outside wrapper (the stuff before the BODY is the TAPE that holds it together ) If you want: PM me the book and I will look it over. BTW do follow the advice and lose the entity indents, with a CSS supplied indent, you can change the amount of indent wit ONE single entry. Wombats solution is the elegant way , but I tend to use the Turtle's method and not worry that I always have the First Para following a /H
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
#9 | ||
|
Connoisseur
![]() Posts: 82
Karma: 10
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: kindle
|
Just lurking to learn.
Quote:
Quote:
Paul |
||
|
|
|
|
|
#10 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 308
Karma: 1489094
Join Date: Nov 2011
Device: none
|
|
|
|
|
|
|
#11 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,712
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
Sigil was lazy and only reported any problem when it hit the </body> and could not go any further in the file.IMHO this should have reported 'Before Line 39' which was where the next '<p class=' was
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
|
#12 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 308
Karma: 1489094
Join Date: Nov 2011
Device: none
|
NAUGHTY Sigil!
But naughty you, for taking so long to discover such a simple error :-) |
|
|
|
|
|
#13 |
|
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Mar 2013
Device: none
|
Paul—Glad to learn I'm not alone! The em dash was in a paragraph much further up in the file & turned out to be irrelevant.
ExaltedW—Thank you for offering to take a look. The problem turned out to be a missing ptag on line 37. Have no idea why Sigil was pointing us toward line 116. The solution was unearthed by the skillful detective work of theducks. Thank you both for your time, help & interest. I'm deeply appreciative. |
|
|
|
|
|
#14 | ||
|
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Mar 2013
Device: none
|
Quote:
Quote:
|
||
|
|
|
|
|
#15 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 534
Karma: 2178910
Join Date: Dec 2012
Location: Bangkok, Thailand today
Device: iPhone 5/iPad 1&2/Surface Pro/Kindle PW
|
![]() The "yadda yadda yadda" is a Seinfeld reference that just means "all the rest that I'm too lazy to say" - very funny - here It was meant to describe any of your following paragraphs after the first one in the chapter. It was my bad that I didn't notice it was the last line in the chapter. It is very confusing that ALL of your paragraphs are assigned the class of "chapstart". It should only be applied to the starting paragraph of your chapter, all the rest would just be <p> with no class. Cheers!
__________________
Dion "Gnihcnip" - the act of "reverse pinching" to expand/zoom. Pronounced "Niknip" (the "g" and "h" are silent). "Live long and prosper." ~ Spock "What's that goat doing up in the clouds? " ~ Pilot
Last edited by Turtle91; 05-10-2013 at 08:54 AM. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Running recipe error: Python function terminated unexpectedly (Error Code: 1) | jpassarella | Recipes | 0 | 10-05-2012 12:54 PM |
| calibre, version 0.8.8 ERROR: Error: Error communicating with device no such column: | e-bookuser | Devices | 1 | 07-03-2011 04:09 PM |
| error message: ERROR ITMS-4099: "Invalid ISBN: [#] at Book (MZItmspBookPac | NewDay | ePub | 3 | 10-07-2010 01:47 PM |
| ERROR: Error: Error communicating with device | JWood | Calibre | 10 | 04-20-2010 07:28 PM |
| ver 0.6.3 error: Error communicating with device PRS-505 | scripo | Calibre | 4 | 08-01-2009 10:38 PM |