Skip to content
Snippets Groups Projects
Commit 2af48037 authored by Martin de la Iglesia's avatar Martin de la Iglesia
Browse files

Zeilenumbrüche verbessert

parent 1cdb6f66
No related branches found
No related tags found
No related merge requests found
......@@ -434,7 +434,7 @@
</span>
</xsl:template>
<xsl:template match="lb[not(name(preceding-sibling::node()[1]) = 'pb')][not(parent::p and (count(preceding-sibling::node()) = 0) or matches(preceding-sibling::node()[1],'^\s*$'))][* or matches(., '\w') or not(@xml:id)]" mode="step3">
<xsl:template match="lb[not(name(preceding-sibling::node()[1]) = 'pb')][not(parent::p and (count(preceding-sibling::node()) = 0))][* or matches(., '\w') or not(@xml:id)]" mode="step3">
<!-- Letztere Klammer verhindert, dass 2 Zeilenumbrüche hintereinander stehen. -->
<xsl:choose>
<xsl:when test="not(parent::p/*[1][self::lb][not(* or matches(., '\w') or not(@xml:id))])">
......@@ -963,4 +963,4 @@
</span>
</xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment