View Single Post
Old 04-04-2011, 09:01 AM   #1
bfollowell
Fanatic
bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.
 
Posts: 541
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Samsung Galaxy Tab 4 Nook & Samsung Galaxy Tab S 10.5
Problems with cdata section. I need help/info.

I'm having a problem with Sigil inserting some code into my ebooks. It just started all of a sudden and I'm not really sure why or what this code does. I Googled the term but I'm not sure I understand it any better after reading the explanation. It mentioned something about text inside the cdata section being ignored by the parser. What exactly does this mean?

Secondly, why would Sigil just start doing this all of a sudden? The code that this is being inserted around is code that I've always used in the past and Sigil inserting a cdata section around it is a fairly recent occurrence.

Here's a prime example. At the top of any particular html file within the ebook I have a line that sets up a very small margin:

Code:
@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }
Now this code always comes out looking like this:

Code:
  /*<![CDATA[*/
                @page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }
  /*]]>*/
Any ideas why this is being done or why Sigil would've just started doing this all of a sudden?

Thanks for any information anyone may be able to provide.

Sincerely,
- Byron
bfollowell is offline   Reply With Quote