Quote:
Originally Posted by DiapDealer
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> </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
.