Commit a24211e089991819909628fa1c370f012ce318d0

Authored by Colomban Wendling
1 parent a5ca2ad7
Exists in python

Do not insert placeholder empty paragraphs

Since we generate valid sections with a name, the placeholder
paragraphs don't seem to be needed anymore.
Showing 1 changed file with 0 additions and 12 deletions   Show diff stats
strip-frames.xsl
... ... @@ -20,15 +20,6 @@
20 20 <xsl:template match="office:automatic-styles">
21 21 <xsl:copy>
22 22 <xsl:apply-templates select="@* | node()"/>
23   - <!-- style for placeholder paragraphs -->
24   - <xsl:element name="style:style">
25   - <xsl:attribute name="style:family">paragraph</xsl:attribute>
26   - <xsl:attribute name="style:name">PlaceholderEmptyParagraph</xsl:attribute>
27   - <xsl:element name="style:paragraph-properties">
28   - <xsl:attribute name="fo:margin">0</xsl:attribute>
29   - <xsl:attribute name="fo:line-height">0</xsl:attribute>
30   - </xsl:element>
31   - </xsl:element>
32 23 <!-- create a derived style for each paragraph we strip from around a frame,
33 24 which should be identical but for having a 0 line height -->
34 25 <xsl:for-each select="//text:p[draw:frame]">
... ... @@ -119,9 +110,6 @@
119 110 <xsl:apply-templates select="."/>
120 111 -->
121 112 </xsl:element>
122   - <xsl:element name="text:p">
123   - <xsl:attribute name="text:style-name">PlaceholderEmptyParagraph</xsl:attribute>
124   - </xsl:element>
125 113 <!--
126 114 </xsl:for-each>
127 115 -->
... ...