[yelp-xsl] mal2html-media.xsl: style attribute is space-separated



commit a5e1ac2ad278008139d4f43b8d9a101223f57247
Author: Shaun McCance <shaunm gnome org>
Date:   Fri Mar 18 12:51:03 2011 -0400

    mal2html-media.xsl: style attribute is space-separated

 xslt/mallard/html/mal2html-media.xsl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/xslt/mallard/html/mal2html-media.xsl b/xslt/mallard/html/mal2html-media.xsl
index b995fb9..7b02f66 100644
--- a/xslt/mallard/html/mal2html-media.xsl
+++ b/xslt/mallard/html/mal2html-media.xsl
@@ -294,10 +294,10 @@ FIXME
   <xsl:variable name="style" select="concat(' ', @style, ' ')"/>
   <xsl:variable name="class">
     <xsl:choose>
-      <xsl:when test="contains($style, 'floatleft')">
+      <xsl:when test="contains($style, ' floatleft ')">
         <xsl:text> floatleft</xsl:text>
       </xsl:when>
-      <xsl:when test="contains($style, 'floatright')">
+      <xsl:when test="contains($style, ' floatright ')">
         <xsl:text> floatright</xsl:text>
       </xsl:when>
     </xsl:choose>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]