View Single Post
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,745
Karma: 24032915
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, 308 views)
Doitsu is offline   Reply With Quote