xsl/gemini.xsl: link and spacing precautions
c3d2-web deployed Details
c3d2-gemini deployed Details

This commit is contained in:
Astro 2022-03-05 00:56:39 +01:00
parent 26bd1bc556
commit a99b6a27ca
1 changed files with 10 additions and 7 deletions

View File

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