Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 01-17-2014, 12:30 PM   #1
PePaXY
Junior Member
PePaXY began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2014
Device: PB 622 Touch
Sigil 0.7.4 delete line with nbsp;!

I do not know how to add new thread, so I try this.
In Sigil v0.7.4 I put a blank line <p> nbsp; </ p>
Sigil change it to <p> # 160; </ p> and then delete it!

I just wanted to let Sigil me there &nbsp; not changed nbsp to the #160

Last edited by PePaXY; 01-19-2014 at 12:31 PM.
PePaXY is offline   Reply With Quote
Old 01-17-2014, 12:33 PM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
What operating system, and what are the exact steps to reproduce it?

The change to #160 is expected behavior in 0.7.4. The deletion of a line is clearly not.
DiapDealer is offline   Reply With Quote
Advert
Old 01-18-2014, 06:23 AM   #3
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
Doesn't it need the ampersand in front of #?
mrmikel is offline   Reply With Quote
Old 01-18-2014, 06:54 AM   #4
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I'm assuming the & was left out because the forum will actually render the entity if you enter it.
DiapDealer is offline   Reply With Quote
Old 01-18-2014, 07:59 AM   #5
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
There's a trick for that:

&[noparse]#160;[/noparse] -> &#160;
Jellby is offline   Reply With Quote
Advert
Old 01-18-2014, 08:14 AM   #6
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by PePaXY View Post
I do not know how to add new thread
Go into the forum and click the "New Thread" blue button immediately above the list of thread titles.
HarryT is offline   Reply With Quote
Old 01-18-2014, 08:21 AM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Jellby View Post
There's a trick for that:
Now THAT will come in handy. Thanks!
DiapDealer is offline   Reply With Quote
Old 01-18-2014, 04:13 PM   #8
Start
Enthusiast
Start can program the VCR without an owner's manual.Start can program the VCR without an owner's manual.Start can program the VCR without an owner's manual.Start can program the VCR without an owner's manual.Start can program the VCR without an owner's manual.Start can program the VCR without an owner's manual.Start can program the VCR without an owner's manual.Start can program the VCR without an owner's manual.Start can program the VCR without an owner's manual.Start can program the VCR without an owner's manual.Start can program the VCR without an owner's manual.
 
Start's Avatar
 
Posts: 39
Karma: 197564
Join Date: Dec 2012
Location: Solar System, planet Earth
Device: Tolino Shine 2 HD
Question ... me too

I saw the same problem. Now I have installed 0.72 as I don't want to see blank-lines deleted.

I don't remember exactly what happened.

I saved continously my ebook, I inserted some blank lines, and two or three new sentences. Nothing else. It was late and I was tired. Only a final glimpse in book viewer and I found out no blank spaces among paragraphs!

After that I tested it for a replica of this deletion, but nothing at all... and so It was impossible to post here the problem without any evidence. There is always the idea of a mistake by me, too...

But if someone else has the same "surprise", well, I change my mind.
Start is offline   Reply With Quote
Old 01-19-2014, 12:22 PM   #9
PePaXY
Junior Member
PePaXY began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2014
Device: PB 622 Touch
I just wanted to let Sigil me there &nbsp;, not that it changed the *
PePaXY is offline   Reply With Quote
Old 01-19-2014, 12:24 PM   #10
PePaXY
Junior Member
PePaXY began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2014
Device: PB 622 Touch
I just wanted to let Sigil me there &nbsp; not that it changed the &amp;#160;

Last edited by PePaXY; 01-19-2014 at 12:27 PM.
PePaXY is offline   Reply With Quote
Old 01-19-2014, 12:38 PM   #11
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
This why it can be better to use CSS to give you space between paragraphs instead of using blank lines. It can also be much easier to vary the space until you get it just so, since all you have to vary is the css in the stylesheet and presto all the paragraphs are adjusted.
mrmikel is offline   Reply With Quote
Old 01-19-2014, 02:37 PM   #12
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by PePaXY View Post
I just wanted to let Sigil me there &nbsp; not that it changed the &amp;#160;
Then you need to use version 0.7.2. There is not a big difference between the two actually.
Toxaris is offline   Reply With Quote
Old 02-15-2014, 01:40 AM   #13
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by DiapDealer View Post
What operating system, and what are the exact steps to reproduce it?

The change to #160 is expected behavior in 0.7.4. The deletion of a line is clearly not.
I did some tests and was able to reproduce the problem on my Windows machine.

1. Open Sigil and select Edit > Preferences > Clean Source: select HTML Tidy, enable the Save check box and disable the Open check box.
2. Insert the following HTML code between two paras in Source View mode: <p>&nbsp;</p>
3. Switch back to Book View mode and insert or delete a character.
4. Switch back to Code View. You'll see that Sigil 0.7.4 has replaced the non-breaking space with &#160;. (So far so good.)
5. Save the file and close Sigil.
6. Reopen the file. Note that Sigl has replaced &#160; with a regular space.
7. Save the file again. <p> </p> will be deleted by HTML Tidy, which was to be expected.

tl;dr Sigil 0.7.4 will replace &#160; with a regular space unless the Clean Source Open option (Pretty Print or HTML Tidy) has been enabled.

Please find attached a test file, in which a non-breaking space has been encoded as &#160;. If you open it with the Clean Source Open option disabled, it'll be replaced by a regular space. If the Clean Source Open option is enabled, it'll replaced by &nbsp;.
Attached Files
File Type: epub nsbp_test.epub (2.2 KB, 295 views)
Doitsu is offline   Reply With Quote
Old 02-15-2014, 10:30 AM   #14
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I can indeed duplicate that situation in 0.7.4. Thanks.

It certainly qualifies as a bug, but I've always felt that anyone who leaves HTML Tidy (not Pretty Print) turned on does so at the risk of their code getting screwed up at some time or another.
DiapDealer is offline   Reply With Quote
Old 02-15-2014, 09:57 PM   #15
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by DiapDealer View Post
I can indeed duplicate that situation in 0.7.4. Thanks.

It certainly qualifies as a bug, but I've always felt that anyone who leaves HTML Tidy (not Pretty Print) turned on does so at the risk of their code getting screwed up at some time or another.
All the more so that this shouldn't ONLY be broken for people who leave it off.
eschwartz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete a line alnapier Sigil 2 01-12-2013 03:31 PM
Line Spacing in Sigil? markjoseph Sigil 12 03-30-2012 11:31 PM
Sigil and epub (can I delete empty chapters?) desaderal Sigil 3 03-24-2011 07:57 AM
txt to Epub - nbsp nbsp cybmole Calibre 1 09-17-2010 09:05 AM


All times are GMT -4. The time now is 05:36 AM.


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