Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-08-2013, 12:13 PM   #1
lipstick
Junior Member
lipstick began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Mar 2013
Device: none
need help with an error:

Hi tech gurus,

Sigil crashed when I tried to insert an em dash. When I reopened, I got this message:

Quote:
An error was found at or above line 116: expected end of tag 'p'.
The Fix Manually option will let you fix the problem by hand.
Line 116 looks like this (which is how all the chapters end). I just copied & pasted:

<p class="chapstart">&nbsp; &nbsp; 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!
lipstick is offline   Reply With Quote
Old 05-08-2013, 01:25 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,778
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by lipstick View Post
Hi tech gurus,

Sigil crashed when I tried to insert an em dash. When I reopened, I got this message:



Line 116 looks like this (which is how all the chapters end). I just copied & pasted:

<p class="chapstart">&nbsp; &nbsp; 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!
Look at 115
Probably your mdash is on the wrong side of the tag
theducks is offline   Reply With Quote
Advert
Old 05-08-2013, 05:34 PM   #3
lipstick
Junior Member
lipstick began at the beginning.
 
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
lipstick is offline   Reply With Quote
Old 05-08-2013, 06:09 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,778
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by lipstick View Post
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.
Fix the missing/misplaced </p tag (could be at either end) : You have to fix malformed HTML before proceeding

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>
theducks is offline   Reply With Quote
Old 05-09-2013, 04:29 AM   #5
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,093
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
On a slightly different note:

Are you using the &nbsp; to create an indent in your paragraph??
Quote:
<p class="chapstart">&nbsp; &nbsp; Just ...
If you are, I would recommend using CSS to perform that function...it makes your coding a little cleaner. I would also recommend NOT indenting the first paragraph of each chapter. This is purely artistic preference - you can do it however you wish - it just seems to be the normal way of doing things these days.
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,
Turtle91 is offline   Reply With Quote
Advert
Old 05-09-2013, 06:02 AM   #6
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
Quote:
Originally Posted by Turtle91 View Post
I would also recommend NOT indenting the first paragraph of each chapter. This is purely artistic preference - you can do it however you wish - it just seems to be the normal way of doing things these days.
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>
Or even (if you use <h1> for chapter headings) automate it with:

h1 + p {text-indent:0;}
exaltedwombat is offline   Reply With Quote
Old 05-09-2013, 07:41 AM   #7
lipstick
Junior Member
lipstick began at the beginning.
 
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">&nbsp; &nbsp; 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.&nbsp;</p>

  <p class="chapstart">&nbsp; &nbsp; “Lunch?” he said unexpectedly.</p>

  <p class="chapstart">&nbsp; &nbsp; Barbara hesitated. Was Nat Bain asking her to lunch? Or was he asking her something else? &nbsp;Was he asking if she would have sex with him?</p>

  <p class="chapstart">&nbsp; &nbsp; 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">&nbsp; &nbsp; She agreed to have lunch with him but lunch didn’t turn out the way she’d imagined.</p>

  <p class="chapstart">&nbsp; &nbsp; Just like her life.</p>
</body>
</html>

Last edited by theducks; 05-09-2013 at 09:08 AM. Reason: wrapped in code tg
lipstick is offline   Reply With Quote
Old 05-09-2013, 09:33 AM   #8
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,778
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I don't see it (the error) either

div 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
theducks is offline   Reply With Quote
Old 05-09-2013, 11:10 AM   #9
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Just lurking to learn.

Quote:
wombat—Wish I could automate the whole d*mn thing! :-)
Roger that

Quote:
Here's a copy of the last lines of code starting with line 105. Is there a clue here of what's gone wrong?
Where's the em dash piece?

Paul
phossler is offline   Reply With Quote
Old 05-09-2013, 11:30 AM   #10
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
Quote:
Originally Posted by lipstick View Post
Here's a copy of the last lines of code starting with line 105. Is there a clue here of what's gone wrong?
That section of code is fine. The problem must be further up. Post the whole file if you want us to see where.
exaltedwombat is offline   Reply With Quote
Old 05-09-2013, 12:19 PM   #11
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,778
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by exaltedwombat View Post
That section of code is fine. The problem must be further up. Post the whole file if you want us to see where.
I found (offline) the error : There was a missing </p> on Line 37.

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
theducks is offline   Reply With Quote
Old 05-09-2013, 12:36 PM   #12
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
NAUGHTY Sigil!
But naughty you, for taking so long to discover such a simple error :-)
exaltedwombat is offline   Reply With Quote
Old 05-09-2013, 01:22 PM   #13
lipstick
Junior Member
lipstick began at the beginning.
 
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.
lipstick is offline   Reply With Quote
Old 05-09-2013, 01:27 PM   #14
lipstick
Junior Member
lipstick began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Mar 2013
Device: none
Quote:
Have no idea why Sigil was pointing us toward line 116.
Quote:
NAUGHTY Sigil!
So now I know! :-) Sigil, go stand in the corner.
lipstick is offline   Reply With Quote
Old 05-10-2013, 12:43 AM   #15
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,093
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire

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!

Last edited by Turtle91; 05-10-2013 at 08:54 AM.
Turtle91 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


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


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