xsl/gemini.xsl: link and spacing precautions
All checks were successful
c3d2-web deployed
c3d2-gemini deployed

This commit is contained in:
Astro 2022-03-05 00:56:39 +01:00
parent 26bd1bc556
commit a99b6a27ca

View File

@ -99,7 +99,7 @@
<variable name="itemposition" select="position()"/> <variable name="itemposition" select="position()"/>
<for-each select="$news/item"> <for-each select="$news/item">
<text>## </text> <text>&#10;## </text>
<value-of select="@title"/> <value-of select="@title"/>
<text>&#10;</text> <text>&#10;</text>
@ -145,7 +145,7 @@
'-' '-'
)"> )">
<text>## </text> <text>&#10;## </text>
<value-of select="@title"/> <value-of select="@title"/>
<text>&#10;</text> <text>&#10;</text>
@ -168,12 +168,12 @@
<!-- portal --> <!-- portal -->
<template match="/page/portal"> <template match="/page/portal">
<text>## Kalender&#10;</text> <text>&#10;## Kalender&#10;</text>
<call-template name="calendar-events"> <call-template name="calendar-events">
<with-param name="limit" select="10"/> <with-param name="limit" select="10"/>
</call-template> </call-template>
<text>## Changelog&#10;</text> <text>&#10;## Changelog&#10;</text>
<apply-templates/> <apply-templates/>
</template> </template>
@ -296,6 +296,7 @@
</template> </template>
<template match="p"> <template match="p">
<text>&#10;</text>
<if test="@title"> <if test="@title">
<text>## </text> <text>## </text>
<value-of select="@title"/> <value-of select="@title"/>
@ -312,9 +313,9 @@
</template> </template>
<template match="blockquote"> <template match="blockquote">
<text>```&#10;</text> <text>&#10;```&#10;</text>
<apply-templates/> <apply-templates/>
<text>```&#10;</text> <text>&#10;```&#10;</text>
</template> </template>
<template name="normalize-paragraph"> <template name="normalize-paragraph">
@ -336,7 +337,9 @@
<template name="link-list"> <template name="link-list">
<for-each select=".//link"> <for-each select=".//link">
<text>=> </text> <text>=> </text>
<value-of select="@href"/> <call-template name="make-href">
<with-param name="href" select="@href"/>
</call-template>
<text> </text> <text> </text>
<choose> <choose>
<when test="image/@title"> <when test="image/@title">