Skip to content

Commit

Permalink
Remove whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
tomschr committed Jan 31, 2024
1 parent 7375d30 commit 6ce6ba9
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions suse2022-ns/xhtml/json-ld.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@
{
"@context": "http://schema.org",
"@type": ["TechArticle", "SoftwareApplication"],

<xsl:call-template name="json-ld-headline">
<xsl:with-param name="node" select="$node"/>
</xsl:call-template>
Expand Down Expand Up @@ -243,8 +242,7 @@
<xsl:param name="node" select="."/>
<xsl:variable name="headline"
select="normalize-space(($node/d:info/d:meta[@name='title'] | $node/d:info/d:title | $node/d:title)[last()])"/>

<xsl:value-of select="concat('&quot;headline&quot;: ', '&quot;', $headline, '&quot;,')"/>
"headline": "<xsl:value-of select="$headline"/>",
</xsl:template>

<xsl:template name="json-ld-description">
Expand Down Expand Up @@ -558,7 +556,7 @@
<xsl:variable name="version" select="($productnumber | $meta)[last()]"/>

<xsl:if test="$version != ''">
"softwareVersion": "<xsl:value-of select="$version"/>",
"softwareVersion": "<xsl:value-of select="$version"/>",
</xsl:if>
</xsl:template>

Expand All @@ -581,15 +579,15 @@
</xsl:variable>

<xsl:if test="$product != ''">
"isPartOf": {
"@type": "CreativeWorkSeries",
"name": "<xsl:value-of select="$product"/>"<xsl:if test="$acronym != ''">
"isPartOf": {
"@type": "CreativeWorkSeries",
"name": "<xsl:value-of select="$product"/>"<xsl:if test="$acronym != ''">
<xsl:text>,&#10;</xsl:text>
<xsl:text> "alternateName": "</xsl:text>
<xsl:text> "alternateName": "</xsl:text>
<xsl:value-of select="$acronym"/>
<xsl:text>"</xsl:text>
</xsl:if>
},
},
</xsl:if>
</xsl:template>

Expand Down

0 comments on commit 6ce6ba9

Please sign in to comment.