XML – XSL Removes a newline from text

I want to delete all line breaks after the text, see the attachment “

Unnecessary line breaks, as shown in notepadd:

< p>alt text http://img13.imageshack.us/img13/9803/clcflinebreak.png

This is what I have so far:

< xsl:template match="p">


Any ideas? Thank you!

If you use conversion to generate HTML output, The easiest way is usually:

Normalize-space strip leading and trailing spaces, and replace multiple blank characters in the string with a single space.

To accurately delete the trailing CR/LF pairs:








I want to delete the line breaks after all the text, see the attachment "

Unnecessary line breaks, as shown in notepadd:

alt text http://img13.imageshack.us/img13/9803/clcflinebreak.png

This is what I have so far:




Any ideas? Thanks!

If you use conversion to generate HTML output, the easiest way is usually:

 

The operation of normalize-space strip leading and trailing spaces, and replace multiple blank characters in a string with a single space.< /p>

To accurately delete the trailing CR/LF pair:








WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 6010 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.