472,121 Members | 1,554 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,121 software developers and data experts.

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 4981


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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.