From da713767b13661e56667175b363370d91f225db1 Mon Sep 17 00:00:00 2001 From: sendler <sendler@sub.uni-goettingen.de> Date: Thu, 10 Feb 2022 14:44:27 +0000 Subject: [PATCH] fix: no extra whitespace before first entry Teller --- xslt/tei2tex.xsl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xslt/tei2tex.xsl b/xslt/tei2tex.xsl index 0ed610f..80a3861 100644 --- a/xslt/tei2tex.xsl +++ b/xslt/tei2tex.xsl @@ -127,7 +127,9 @@ </xsl:template> <xsl:template match="div[@type = 'entry']"> - <xsl:text>\vspace[Quarterline] </xsl:text> + <xsl:if test="not(preceding-sibling::*[1][self::head])"> + <xsl:text>\vspace[Quarterline] </xsl:text> + </xsl:if> <xsl:apply-templates/> </xsl:template> -- GitLab