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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • KathyB

    #1

    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
  • Martin Honnen

    #2
    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/

    Comment

    Working...