Rainie3535 / sigil

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

Replace All in All HTML files adds extra blank lines in style section #1253

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Create a new document, switch to code view.

Add a simple style to the header:

  <style type="text/css">
/*<![CDATA[*/

  h1 {color:red;}
  p {color:blue;}
  /*]]>*/
  </style>

Enter F&R and search for "stuff" replace with "morestuff", set Normal, In All 
HTML Files, Down.   
Hit Replace All repeatedly
-> one extra blank line is inserted after CDATA each time you do a replace

Patch attached that replaces blank lines at the start of the style section with 
one blank line after tidy is run for Replace All in All HTML Files.

Original issue reported on code.google.com by meme90...@gmail.com on 9 Feb 2012 at 5:18

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by john@nachtimwald.com on 10 Feb 2012 at 12:04

GoogleCodeExporter commented 9 years ago

Original comment by daveheil...@gmail.com on 19 May 2012 at 3:20