www/105527: [Patch] Better format of pages with news
Rudolf Cejka
cejkar at fit.vutbr.cz
Tue Nov 14 14:30:07 UTC 2006
>Number: 105527
>Category: www
>Synopsis: [Patch] Better format of pages with news
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-www
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Nov 14 14:30:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Rudolf Cejka
>Release: FreeBSD 6.1-STABLE i386
>Organization:
FIT, Brno University of Technology, Czech Republic
>Environment:
>Description:
Current look of pages with news (news/newsflash.html and
news/year/index.html) is very sparse and it is very different
from a format of press pages. Below are patches to the www/share/sgml,
which make format of news more compact and more consistent with the press
(news/press.html).
--- libcommon.xsl.orig Tue Nov 14 15:02:45 2006
+++ libcommon.xsl Tue Nov 14 15:04:14 2006
@@ -408,7 +408,10 @@
</xsl:call-template></b>
<!-- put localized text -->
<xsl:text> </xsl:text>
- <xsl:copy-of select="p" />
+ <xsl:for-each select="p">
+ <xsl:if test="position() > 1"><br /><br /></xsl:if>
+ <xsl:copy-of select="child::node()" />
+ </xsl:for-each>
</p>
</li>
</xsl:for-each>
@@ -441,7 +444,10 @@
</xsl:call-template></b>
<!-- put English text -->
<xsl:text> </xsl:text>
- <xsl:copy-of select="p" />
+ <xsl:for-each select="p">
+ <xsl:if test="position() > 1"><br /><br /></xsl:if>
+ <xsl:copy-of select="child::node()" />
+ </xsl:for-each>
</p>
</li>
</xsl:for-each>
--- templates.oldnewsflash.xsl.orig Tue Nov 14 14:59:19 2006
+++ templates.oldnewsflash.xsl Tue Nov 14 15:08:49 2006
@@ -99,7 +99,10 @@
</xsl:call-template>
<xsl:text>, </xsl:text>
<xsl:value-of select="ancestor::year/name"/>:</b><xsl:text> </xsl:text>
- <xsl:copy-of select="p"/>
+ <xsl:for-each select="p">
+ <xsl:if test="position() > 1"><br /><br /></xsl:if>
+ <xsl:copy-of select="child::node()" />
+ </xsl:for-each>
</p>
</li>
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-www
mailing list