# HG changeset patch
# User Henning Brinkmann <hbrinkm@openoffice.org>
# Date 1284564816 -7200
# Node ID 66c51895956a5aa6aea57e20f1b805515e0cd8e3
# Parent  396b589d482ae6dd288f9667889e76ae174d20f1
rtftok01: handle <parfmt>

diff --git a/writerfilter/source/rtftok/spectobnf.xsl b/writerfilter/source/rtftok/spectobnf.xsl
--- a/writerfilter/source/rtftok/spectobnf.xsl
+++ b/writerfilter/source/rtftok/spectobnf.xsl
@@ -595,9 +595,11 @@
                       <xsl:with-param name="tail">*</xsl:with-param>
                     </xsl:call-template>
                   </xsl:variable>
-                  <xsl:call-template name="tokentoelement">
-                    <xsl:with-param name="token" select="substring($destarred, 2)"/>
-                  </xsl:call-template>
+                  <xsl:if test="substring($destarred, 1, 1) = '\'">
+                    <xsl:call-template name="tokentoelement">
+                      <xsl:with-param name="token" select="substring($destarred, 2)"/>
+                    </xsl:call-template>
+                  </xsl:if>
                 </xsl:for-each>
               </xsl:for-each>
             </xsl:if>
@@ -620,6 +622,10 @@
       <xsl:with-param name="search">Special Characters</xsl:with-param>
     </xsl:call-template>
     <xsl:call-template name="chrfmtetc">
+      <xsl:with-param name="define">parfmt</xsl:with-param>
+      <xsl:with-param name="search">Paragraph Formatting Properties</xsl:with-param>
+    </xsl:call-template>
+    <xsl:call-template name="chrfmtetc">
       <xsl:with-param name="define">aprops</xsl:with-param>
       <xsl:with-param name="search">Associated Character Properties</xsl:with-param>
       <xsl:with-param name="number">2</xsl:with-param>
