|  01-17-2014, 12:30 PM | #1 | 
| Junior Member  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   not changed nbsp to the #160 Last edited by PePaXY; 01-19-2014 at 12:31 PM. | 
|   |   | 
|  01-17-2014, 12:33 PM | #2 | 
| Grand Sorcerer            Posts: 28,880 Karma: 207000000 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. | 
|   |   | 
|  01-18-2014, 06:23 AM | #3 | 
| Color me gone            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 #?
		 | 
|   |   | 
|  01-18-2014, 06:54 AM | #4 | 
| Grand Sorcerer            Posts: 28,880 Karma: 207000000 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.
		 | 
|   |   | 
|  01-18-2014, 07:59 AM | #5 | 
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | 
			
			There's a trick for that: &[noparse]#160;[/noparse] ->   | 
|   |   | 
|  01-18-2014, 08:14 AM | #6 | 
| eBook Enthusiast            Posts: 85,560 Karma: 93980341 Join Date: Nov 2006 Location: UK Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6 | |
|   |   | 
|  01-18-2014, 08:21 AM | #7 | 
| Grand Sorcerer            Posts: 28,880 Karma: 207000000 Join Date: Jan 2010 Device: Nexus 7, Kindle Fire HD | |
|   |   | 
|  01-18-2014, 04:13 PM | #8 | 
| Enthusiast            Posts: 39 Karma: 197564 Join Date: Dec 2012 Location: Solar System, planet Earth Device: Tolino Shine 2 HD |  ... 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. | 
|   |   | 
|  01-19-2014, 12:22 PM | #9 | 
| Junior Member  Posts: 3 Karma: 10 Join Date: Jan 2014 Device: PB 622 Touch | 
			
			I just wanted to let Sigil me there  , not that it changed the *
		 | 
|   |   | 
|  01-19-2014, 12:24 PM | #10 | 
| Junior Member  Posts: 3 Karma: 10 Join Date: Jan 2014 Device: PB 622 Touch | 
			
			I just wanted to let Sigil me there   not that it changed the &#160;
		 Last edited by PePaXY; 01-19-2014 at 12:27 PM. | 
|   |   | 
|  01-19-2014, 12:38 PM | #11 | 
| Color me gone            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.
		 | 
|   |   | 
|  01-19-2014, 02:37 PM | #12 | 
| Wizard            Posts: 4,520 Karma: 121692313 Join Date: Oct 2009 Location: Heemskerk, NL Device: PRS-T1, Kobo Touch, Kobo Aura | |
|   |   | 
|  02-15-2014, 01:40 AM | #13 | |
| Grand Sorcerer            Posts: 5,763 Karma: 24088559 Join Date: Dec 2010 Device: Kindle PW2 | Quote: 
 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> </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  . (So far so good.) 5. Save the file and close Sigil. 6. Reopen the file. Note that Sigl has replaced   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   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  . 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  . | |
|   |   | 
|  02-15-2014, 10:30 AM | #14 | 
| Grand Sorcerer            Posts: 28,880 Karma: 207000000 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.   | 
|   |   | 
|  02-15-2014, 09:57 PM | #15 | |
| Ex-Helpdesk Junkie            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: 
   | |
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  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 |