View Single Post
Old 11-07-2010, 06:38 PM   #15
december
Nameless Being
 
I'm a bit behind the times; just upgraded from version 2.0 to 3.0 and am amazed at the change in speed and responsiveness (and lack of crashes! Wonder of wonders!) Thank you for all the work you've put into this!

I am running into one weird problem, though: by this point I'm used to Sigil randomly inserting the 'CDATA' tag wrapper into the <style type="text/css"> segment of my <head> section, but in this new version it is also creating many extra blank lines before the style and CDATA tags in my .xhtml files (to open one file at random, I count 13 blank lines). I suspect it might be multiplying the blank lines every time I do a global search and replace, though I haven't had time to test properly; oddly, though, in some cases the blank lines seem to come back later even after I've cleared them all manually and saved the file without doing any further search/replaces in the text (saving may itself be a trigger; I haven't fully tested that either).

Here's a typical example of what the code on a borked page looks like:

Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title></title>
  <link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css" />
  <style type="text/css">
















  /*<![CDATA[*/

  @page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }

  p.sgc-1 {margin:0pt; border:0pt; height:1em}
  /*]]>*/
  </style>
</head>

<body class="calibre">
(and so on)
I can submit an error report if needed; I'm just curious if anyone else has run into this problem too.
  Reply With Quote