ZenphotoCMS Forum
Newlines and breaks in simpleviewer captions - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Newlines and breaks in simpleviewer captions (/thread-1775.html)



Newlines and breaks in simpleviewer captions - aaron - 08-11-2007

I have bought simpleviewer pro and converted it to match my needs with the exception of one thing. When I put caption text into the zenphoto form in the admin section, the breaks created have a lot of space in between them. Usually, breaks just create a newline, but this seems to convert it to a paragraph style. I've tried setting it in the CSS, but no luck, so I'm guessing Flash is setting this or something is happening in the conversion to the XML file for simpleviewer. Can anyone help?




Newlines and breaks in simpleviewer captions - sbillard - 08-11-2007

You can try using in place of newline.




Newlines and breaks in simpleviewer captions - aaron - 08-11-2007

Well, I never actually use a newline, I just type the information into the caption box. At some points, I need a newline. But, I don't need 10px of space between the lines.




Newlines and breaks in simpleviewer captions - aaron - 08-11-2007

Correction, there are 27px between each line when a is used.




Newlines and breaks in simpleviewer captions - sbillard - 08-11-2007

So, you are describing the leading. Guess that is controled by simpleviewer. Since you have the Pro version, presumably you could fix that. Never looked into the pro version, so can't help you there (and from what I have experienced with the simpleviewer forum, you are unlikely to get help there either.)




Newlines and breaks in simpleviewer captions - sbillard - 08-11-2007

OK, found the problem--getImageDesc() replaces newline with a . It should replace cr/newline as well. Fix is in the SVN and will be in the nightly tonight.




Newlines and breaks in simpleviewer captions - aaron - 08-11-2007

ok, great, thanks!




Newlines and breaks in simpleviewer captions - aaron - 08-11-2007

Btw, could you copy and paste your function code here? I've actually been working with getImageDesc() today and couldn't get it to work. For me, a newline or a break does the same thing, 27px of space.