469,963 Members | 1,924 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,963 developers. It's quick & easy.

Prevent html source text from wrapping/breaking on multiple lines?

Hi, I'm using xml transformed to html via xsl. The problem is my HTML
source text auto wraps/breaks lines. This only matters when the line
involves a parameter I'm passing to a script...which then doesn't
work.

QUESTION: How can I prevent the line wrap/break in the html source
text?

The only thing I've seen is <nobr> but that doesn't affect the source,
just the output...is there ANY way?

Thanks,

Kathy
Jul 20 '05 #1
1 4894


KathyB wrote:
Hi, I'm using xml transformed to html via xsl. The problem is my HTML
source text auto wraps/breaks lines. This only matters when the line
involves a parameter I'm passing to a script...which then doesn't
work.

QUESTION: How can I prevent the line wrap/break in the html source
text?


Which XSLT processor are you using?
I don't think the processor will break lines when generating HTML. Of
course if your input data contains line breaks then you need to take
care that they are escaped in JavaScript string literals.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Paul E Collins | last post: by
14 posts views Thread by Ludwig77 | last post: by
3 posts views Thread by GarryJones | last post: by
23 posts views Thread by andrew | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.