Connecting Tech Pros Worldwide Forums | Help | Site Map

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

KathyB
Guest
 
Posts: n/a
#1: Jul 20 '05
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

Martin Honnen
Guest
 
Posts: n/a
#2: Jul 20 '05

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




KathyB wrote:[color=blue]
> 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?[/color]

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/

Closed Thread