[yelp-xsl] mal2html-(media, page): Added floatstart and floatend, bug #645947



commit ed965333e753c97ebb11ede1c27457a8f3f3b0ba
Author: Shaun McCance <shaunm gnome org>
Date:   Wed Apr 6 14:30:59 2011 -0400

    mal2html-(media,page): Added floatstart and floatend, bug #645947

 xslt/mallard/html/mal2html-media.xsl |    6 ++++++
 xslt/mallard/html/mal2html-page.xsl  |    8 ++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/xslt/mallard/html/mal2html-media.xsl b/xslt/mallard/html/mal2html-media.xsl
index 7b02f66..69fe5d5 100644
--- a/xslt/mallard/html/mal2html-media.xsl
+++ b/xslt/mallard/html/mal2html-media.xsl
@@ -294,6 +294,12 @@ FIXME
   <xsl:variable name="style" select="concat(' ', @style, ' ')"/>
   <xsl:variable name="class">
     <xsl:choose>
+      <xsl:when test="contains($style, ' floatstart ')">
+        <xsl:text> floatstart</xsl:text>
+      </xsl:when>
+      <xsl:when test="contains($style, ' floatend ')">
+        <xsl:text> floatend</xsl:text>
+      </xsl:when>
       <xsl:when test="contains($style, ' floatleft ')">
         <xsl:text> floatleft</xsl:text>
       </xsl:when>
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index ac1acce..a2e0fbb 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -1146,6 +1146,14 @@ div.floatright {
   float: right;
   margin-left: 1em;
 }
+div.floatstart {
+  float: </xsl:text><xsl:value-of select="$left"/><xsl:text>;
+  margin-</xsl:text><xsl:value-of select="$right"/><xsl:text>: 1em;
+}
+div.floatend {
+  float: </xsl:text><xsl:value-of select="$right"/><xsl:text>;
+  margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1em;
+}
 
 div.copyrights {
   text-align: center;



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