Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 05:27 PM
KathyB
Guest
 
Posts: n/a
Default 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
  #2  
Old July 20th, 2005, 05:27 PM
Martin Honnen
Guest
 
Posts: n/a
Default 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/

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles