FB2 Input: Add support for <code> tag. Fixes #1058591 (Support FB2 code tag)

This commit is contained in:
Kovid Goyal 2012-09-30 09:02:40 +05:30
parent b4b846ec34
commit 0720d2ed74

View File

@ -53,9 +53,11 @@
ul {margin-left: 0} ul {margin-left: 0}
.epigraph{width:50%; margin-left : 35%;} .epigraph{width:75%; margin-left : 25%; font-style: italic;}
div.paragraph { text-indent: 2em; } div.paragraph { text-indent: 2em; }
.subtitle { text-align: center; }
</style> </style>
<link rel="stylesheet" type="text/css" href="inline-styles.css" /> <link rel="stylesheet" type="text/css" href="inline-styles.css" />
</head> </head>
@ -213,7 +215,7 @@
<xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute> <xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute>
</xsl:element> </xsl:element>
</xsl:if> </xsl:if>
<h5> <h5 class="subtitle">
<xsl:apply-templates/> <xsl:apply-templates/>
</h5> </h5>
</xsl:template> </xsl:template>
@ -234,11 +236,11 @@
</xsl:template> </xsl:template>
<!-- strong --> <!-- strong -->
<xsl:template match="fb:strong"> <xsl:template match="fb:strong">
<b><xsl:apply-templates/></b> <strong><xsl:apply-templates/></strong>
</xsl:template> </xsl:template>
<!-- emphasis --> <!-- emphasis -->
<xsl:template match="fb:emphasis"> <xsl:template match="fb:emphasis">
<i> <xsl:apply-templates/></i> <em> <xsl:apply-templates/></em>
</xsl:template> </xsl:template>
<!-- style --> <!-- style -->
<xsl:template match="fb:style"> <xsl:template match="fb:style">
@ -410,5 +412,9 @@
</xsl:if> </xsl:if>
</xsl:element> </xsl:element>
</xsl:template> </xsl:template>
<!-- code -->
<xsl:template match="fb:code">
<code><xsl:apply-templates/></code>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>