mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
FB2 Input: Fix paras with both id and style
FB2 Input: Fix a regression that broke conversion of FB2 files with paragraphs having both a style and an id attribute. Fixes #1243709 [xls:attribute error in FB2 files](https://bugs.launchpad.net/calibre/+bug/1243709)
This commit is contained in:
parent
2fef9eb3ba
commit
3f6c88f0ae
@ -223,14 +223,14 @@
|
||||
<xsl:template match="fb:p">
|
||||
<xsl:element name="div">
|
||||
<xsl:attribute name="class">paragraph</xsl:attribute>
|
||||
<xsl:if test="@style">
|
||||
<xsl:attribute name="style"><xsl:value-of select="@style"/></xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@id">
|
||||
<xsl:element name="a">
|
||||
<xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="@style">
|
||||
<xsl:attribute name="style"><xsl:value-of select="@style"/></xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:apply-templates/>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
Loading…
x
Reference in New Issue
Block a user