Topic: line breaks not working in CDATA

I'm trying to add line breaks in my captions. Inside the CDATA certain HTML tags seem to work in the CDATA like <font> but for some reason <br> does not work. It is completely ignored.

Re: line breaks not working in CDATA

<br> should function see FAQ Number 8. If you post your gallery.xml I'll take a look.

8. How do I add HTML formatting to my Captions?

To use HTML formatting in your captions, you must wrap the HTML formatted text inside a CDATA tag. For example:

<caption><![CDATA[Captions can be HTML formatted. Supported
tags are <b>bold</b>, <u>underline</u>, <i>italics</i>,
<u><a href="http://www.google.com" target="_blank">hyperlinks
</a></u>, linebreaks<br> and <font color="#ffff00" size="60">
font tags</font>
.]]></caption>

http://www.simpleviewer.net/autoviewer/faq.html

Mike Richards
SimpleViewer Support Team.

Re: line breaks not working in CDATA

Hi I can't seem to attach files to my post. Here is the gallery tag from the xml

<gallery frameColor="0xFFFFFF" frameWidth="15" imagePadding="20" displayTime="4" enableRightClickOpen="true">

and here is an example of a caption with BR in it that doesn't work

   <caption><![CDATA[<font size="18">Industrial Complex<br> Ontario</font>]]></caption>

Re: line breaks not working in CDATA

I had no issues using <caption><![CDATA[<font size="18">Industrial Complex<br> Ontario</font>]]></caption> with the default gallery. Please post the URL for your gallery?

Mike Richards
SimpleViewer Support Team.

Re: line breaks not working in CDATA

Here is the link, you can see around image 4-5 that the lines don't break
http://www.foamconcepts.net/architectur … ne-gallery

Re: line breaks not working in CDATA

It looks like the XML the gallery is using does not have linebreaks in it.

<caption><font size="16">Ontario Industrial Complex</font></caption>

Mike Richards
SimpleViewer Support Team.