open-editions / corpus-joyce-dubliners-tei

The open critical edition of James Joyce's Dubliners
GNU General Public License v3.0
2 stars 6 forks source link

Remove extra spaces around paragraphs #1

Open JonathanReeve opened 6 years ago

JonathanReeve commented 6 years ago

The CSS doesn't add any extra margins (margin: 0), but
tags in the XSL do.

JSchaeuble commented 6 years ago

replace lb template by:

<xsl:template match="lb">
    <xsl:apply-templates/>
    <xsl:if test="@n mod 5 = 0" >
        <span class="tag lineNumber">
          <xsl:value-of select="@n" />
        </span>
    </xsl:if>
    <xsl:if test="./ancestor::p">
          <br/>
    </xsl:if>
</xsl:template>
JonathanReeve commented 6 years ago

Thanks for this! That's a big help. Would you mind submitting this as a pull request? If you're too busy, don't worry about it—I'd be happy to make the change myself—but if you do it, you'll get the contribution credit on GitHub!

workshub[bot] commented 2 years ago

A user started working on this issue via WorksHub.