Bug 105527

Summary: [Patch] Better format of pages with news
Product: Documentation Reporter: Rudolf Čejka <cejkar>
Component: Books & ArticlesAssignee: Gabor Kovesdan <gabor>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Rudolf Čejka 2006-11-14 14:30:01 UTC
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>
Comment 1 Gabor Kovesdan freebsd_committer freebsd_triage 2007-02-06 10:15:25 UTC
Responsible Changed
From-To: freebsd-www->gabor

Take.
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-02-15 21:41:10 UTC
gabor       2007-02-15 21:40:56 UTC

  FreeBSD doc repository

  Modified files:
    share/sgml           libcommon.xsl templates.oldnewsflash.xsl 
  Log:
  - Change the format of the news entries a bit to be more consistent
    with the press page and easier to read, as well
  
  PR:             www/105527
  Submitted by:   Rudolf Cejka <cejkar@fit.vutbr.cz>
  Approved by:    keramida (mentor)
  Discussed on:   freebsd-doc, freebsd-www
  
  Revision  Changes    Path
  1.4       +9 -3      www/share/sgml/libcommon.xsl
  1.3       +5 -2      www/share/sgml/templates.oldnewsflash.xsl
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Gabor Kovesdan freebsd_committer freebsd_triage 2007-02-15 21:51:21 UTC
State Changed
From-To: open->closed

Committed, thanks!