Skip to content

Commit

Permalink
fix image location and size
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Mietchen committed Oct 21, 2014
1 parent c99324d commit 43ae7a7
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions jats-to-mediawiki.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@
<xsl:text>|frameless</xsl:text>
</xsl:when>
<xsl:when test="name(..)='disp-formula'">
<xsl:text>|frameless|left</xsl:text>
<xsl:text>|none</xsl:text> <!-- keeps image in original size; adds text in new line below image -->
</xsl:when>
<xsl:otherwise>
<!-- in JATS 0.4, default value of position is 'float' -->
Expand Down Expand Up @@ -671,14 +671,6 @@
</xsl:choose>
<xsl:text>]]</xsl:text>

<!-- adds line break for disp-formula tags only ;) -->
<xsl:choose>
<xsl:when test="name(..)='disp-formula'">
<!-- clear works better here than either line break: &#xA; or <br> -->
<xsl:text>&lt;div style="clear: both;"&gt;&lt;/div&gt;</xsl:text>
</xsl:when>
</xsl:choose>

</xsl:template>


Expand Down

0 comments on commit 43ae7a7

Please sign in to comment.