From df678b77163be6e52aad199c36ce150d8bb72d96 Mon Sep 17 00:00:00 2001 From: Martin de la Iglesia <iglesia@hab.de> Date: Tue, 23 Jul 2024 16:00:04 +0000 Subject: [PATCH] =?UTF-8?q?Handling=20von=20Zeilenumbr=C3=BCchen=20am=20Ab?= =?UTF-8?q?satzanfang=20verbessert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- transkription.xsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transkription.xsl b/transkription.xsl index 4e535b3..7325d09 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))])"> -- GitLab