SAA-SDT / EAS-TagLibraries

Tag Libraries for Encoded Archival Description Version 3 and Encoded Archival Context: Corporate Bodies, Persons, and Families
7 stars 5 forks source link

Whitespace between title and edition on page 2 of pdf tag library #90

Closed ailie-s closed 2 years ago

ailie-s commented 2 years ago

There is an additional space appearing between the title and edition on page 2 of the tag library. EG: Encoded Archival Context - Corporate Bodies, Persons, and Families (EAC-CPF) Tag Library draft Version EAC-CPF 2.0 , 2021 Edition

Creator of issue

  1. Ailie Smith
  2. @ailie-s

The issue relates to

Wanted change/feature

Reporting a bug

Suggested Solution

Steps to Reproduce (for bugs)

1. 2. 3. 4.

Context

Your Environment can be a clue to a bug

ailie-s commented 2 years ago

Possible solution (appears to work for EAC v2 Tag Library):

<xsl:template name="secondpage"> <fo:block font-weight="bold" space-after="6pt" padding-before="-50pt"> <xsl:for-each** select="tei:docTitle/tei:titlePart"> <xsl:choose> <xsl:when test="not(position() ne last())"> <xsl:value-of select="."/> </xsl:when> <xsl:otherwise> <xsl:value-of select="."/> <xsl:text> </xsl:text> </xsl:otherwise> </xsl:choose> </xsl:for-each> <xsl:text>, </xsl:text> <xsl:value-of select="tei:docEdition"/> </fo:block> [...]

alexduryee commented 2 years ago

Resolved in #92 - thanks @ailie-s !