| Summary: | [Patch] Better format of pages with news | ||
|---|---|---|---|
| Product: | Documentation | Reporter: | Rudolf Čejka <cejkar> |
| Component: | Books & Articles | Assignee: | Gabor Kovesdan <gabor> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
Responsible Changed From-To: freebsd-www->gabor Take. 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"
State Changed From-To: open->closed Committed, thanks! |
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>