From 2af480374632d955544c04b3427bce83818d29fd Mon Sep 17 00:00:00 2001 From: Martin de la Iglesia <iglesia@hab.de> Date: Thu, 10 Oct 2024 13:30:24 +0000 Subject: [PATCH] =?UTF-8?q?Zeilenumbr=C3=BCche=20verbessert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- transkription.xsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transkription.xsl b/transkription.xsl index 29f0d3d..40669b4 100644 --- a/transkription.xsl +++ b/transkription.xsl @@ -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 -- GitLab