# HG changeset patch
# User František Kučera <franta-hg@frantovo.cz>
# Date 1318871562 -7200
# Node ID 2ed2497d4559f1f5b65724fe665c85e1905cb8f5
# Parent  c60625d581582e672c66e654d07195da256b94b9
Drupal: zpracování citací (blockquote), doplnění chybějících odstavců (p).

diff -r c60625d58158 -r 2ed2497d4559 helpers/mimeTextPart.xsl
--- a/helpers/mimeTextPart.xsl	Mon Oct 17 18:14:34 2011 +0200
+++ b/helpers/mimeTextPart.xsl	Mon Oct 17 19:12:42 2011 +0200
@@ -73,6 +73,13 @@
 		<xsl:text>&#10;</xsl:text>
 	</xsl:template>
 	
+	<xsl:template match="h:blockquote/h:p">
+		<xsl:text>&gt; </xsl:text>
+		<xsl:apply-templates/>
+		<xsl:text>&#10;</xsl:text>
+		<xsl:text>&#10;</xsl:text>
+	</xsl:template>
+	
 	<xsl:template match="h:a">
 		<xsl:text>"</xsl:text>
 		<xsl:value-of select="text()"/>
diff -r c60625d58158 -r 2ed2497d4559 helpers/mimeXhtmlPart.xsl
--- a/helpers/mimeXhtmlPart.xsl	Mon Oct 17 18:14:34 2011 +0200
+++ b/helpers/mimeXhtmlPart.xsl	Mon Oct 17 19:12:42 2011 +0200
@@ -110,6 +110,14 @@
 		<abbr title="{@title}"><xsl:apply-templates/></abbr>
 	</xsl:template>
 	
+	<xsl:template match="h:blockquote[not(h:p)]">
+		<blockquote>
+			<p>
+				<xsl:copy-of select="node()"/>
+			</p>
+		</blockquote>
+	</xsl:template>
+	
 	
 	<!-- Další povolené značky – ostatní odfiltrujeme (zbude z nich jen text) -->
 	<xsl:template match="*">