Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Nov 2006 15:20:20 +0100 (CET)
From:      Rudolf Cejka <cejkar@fit.vutbr.cz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   www/105527: [Patch] Better format of pages with news
Message-ID:  <200611141420.kAEEKKsq009639@kazi.fit.vutbr.cz>
Resent-Message-ID: <200611141430.kAEEU2bK058072@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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() &gt; 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() &gt; 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() &gt; 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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611141420.kAEEKKsq009639>