Rainie3535 / sigil

Automatically exported from code.google.com/p/sigil
GNU General Public License v3.0
0 stars 0 forks source link

Find / Replace All HTML files messes up coding and layout #1261

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please read http://code.google.com/p/sigil/wiki/ReportingIssues for
information about submitting a good bug report.

What steps will reproduce the problem?
1. I want to change <blockquote> to <div class="note"> in the entire book
2. If I click replace all -- the computer will automatically create the closing 
tag </div> but moves them all to the end of the page so I have about 30 closing 
div tags at the end and messes up the layout.
3. If I find / replace per page and one at a time, then it seems to work fine.

I do not have HTML tidy or Checking for errors selected.
...

What is the expected output? What do you see instead?

Bookwise replace without moving closing tags to the end. 

What version of the product are you using? On what operating system?

Sigil 5.2

Mac OS 10.7.2

Please provide any additional information below. If your source file
(SGF/EPUB/HTML/etc) is required to fully understand the problem, please
attach it to this issue. Read the ReportingIssues wiki page before
submitting!

Original issue reported on code.google.com by unrulygu...@gmail.com on 12 Feb 2012 at 4:17

GoogleCodeExporter commented 9 years ago
Sigil require all but the currently opening document to be valid xhtml. In this 
case you are producing an invalid document which Sigil will try to fix.

Original comment by john@nachtimwald.com on 12 Feb 2012 at 4:29

GoogleCodeExporter commented 9 years ago
The open document is valid as well.  I created the blockquote using SIGIL, then 
decided to use the div class instead. I was able to make the correction, but I 
had to find the item one at a time and change -- I could not replace all on the 
page otherwise it would put the string of div tags at the end. 

Original comment by unrulygu...@gmail.com on 16 Feb 2012 at 12:46