diff --git a/transkription.xsl b/transkription.xsl index 4e535b39324629d122bddadaf005aecb279d828e..7325d093926bf94a90def13d29ee5153970cd34b 100644 --- a/transkription.xsl +++ b/transkription.xsl @@ -431,7 +431,7 @@ </span> </xsl:template> - <xsl:template match="lb[not(name(preceding-sibling::node()[1]) = 'pb')][not(parent::p and count(preceding-sibling::*) = 0)][* 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(preceding-sibling::node()[1],'^\s*$'))][* 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))])">