NetBSD Problem Report #45470
From www@NetBSD.org Fri Oct 14 09:17:03 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 8665663D541
for <gnats-bugs@gnats.NetBSD.org>; Fri, 14 Oct 2011 09:17:03 +0000 (UTC)
Message-Id: <20111014091702.4D54163D538@www.NetBSD.org>
Date: Fri, 14 Oct 2011 09:17:02 +0000 (UTC)
From: gnrp@komkon2.de
Reply-To: gnrp@komkon2.de
To: gnats-bugs@NetBSD.org
Subject: Website does not show para's in sect2's
X-Send-Pr-Version: www-1.0
>Number: 45470
>Category: misc
>Synopsis: Website does not show para's in sect2's
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: www
>State: closed
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Fri Oct 14 09:20:01 +0000 2011
>Closed-Date: Sat Nov 05 17:30:35 +0000 2011
>Last-Modified: Sat Nov 05 17:30:35 +0000 2011
>Originator: Julian Fagir
>Release: NetBSD-current
>Organization:
>Environment:
Website
>Description:
The XSL definitions of the website does not show the para-tags which are only in a sect2.
This results in some existing articles not being showed right, but also in making the writing of new articles more difficult, as you always have to follow these formats.
>How-To-Repeat:
Look at the source code of docs/bootcd.xml, line 705. There is a para "It is possible to mount...", which is not seen on this website:
http://netbsd.org/docs/bootcd.html
>Fix:
Index: share/xsl/webpage.xsl
===================================================================
RCS file: /cvsroot/htdocs/share/xsl/webpage.xsl,v
retrieving revision 1.48
diff -u -r1.48 webpage.xsl
--- share/xsl/webpage.xsl 7 Jul 2011 10:07:47 -0000 1.48
+++ share/xsl/webpage.xsl 20 Aug 2011 10:27:15 -0000
@@ -479,6 +479,7 @@
<hr/>
<h3 class="title"><xsl:apply-templates select="title" mode="plaintext"/>
</h3>
+ <xsl:apply-templates select="para" mode="plaintext"/>
<xsl:for-each select="sect3">
<xsl:apply-templates/>
</xsl:for-each>
This patch adds another break before but is untested. Perhaps have a look at it:
Index: share/xsl/webpage.xsl
===================================================================
RCS file: /cvsroot/htdocs/share/xsl/webpage.xsl,v
retrieving revision 1.48
diff -u -r1.48 webpage.xsl
--- share/xsl/webpage.xsl 7 Jul 2011 10:07:47 -0000 1.48
+++ share/xsl/webpage.xsl 20 Aug 2011 10:29:45 -0000
@@ -478,7 +478,9 @@
<xsl:for-each select="sect2">
<hr/>
<h3 class="title"><xsl:apply-templates select="title" mode="plaintext"/>
- </h3>
+ </h3>
+ <br />
+ <xsl:apply-templates select="para" mode="plaintext"/>
<xsl:for-each select="sect3">
<xsl:apply-templates/>
</xsl:for-each>
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: misc-bug-people->www
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Wed, 19 Oct 2011 16:28:16 +0000
Responsible-Changed-Why:
web page issue
From: "Jeremy C. Reed" <reed@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/45470 CVS commit: htdocs/share/xsl
Date: Wed, 19 Oct 2011 16:54:10 +0000
Module Name: htdocs
Committed By: reed
Date: Wed Oct 19 16:54:10 UTC 2011
Modified Files:
htdocs/share/xsl: webpage.xsl
Log Message:
for PR #45470 from Julian Fagir
make sure para's are in sect2 sections.
slightly changed to not be plaintext so formatting will be kept.
To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 htdocs/share/xsl/webpage.xsl
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: misc/45470: Website does not show para's in sect2's
Date: Wed, 19 Oct 2011 11:54:31 -0500 (CDT)
> Index: share/xsl/webpage.xsl
> ===================================================================
> RCS file: /cvsroot/htdocs/share/xsl/webpage.xsl,v
> retrieving revision 1.48
> diff -u -r1.48 webpage.xsl
> --- share/xsl/webpage.xsl 7 Jul 2011 10:07:47 -0000 1.48
> +++ share/xsl/webpage.xsl 20 Aug 2011 10:27:15 -0000
> @@ -479,6 +479,7 @@
> <hr/>
> <h3 class="title"><xsl:apply-templates select="title" mode="plaintext"/>
> </h3>
> + <xsl:apply-templates select="para" mode="plaintext"/>
> <xsl:for-each select="sect3">
> <xsl:apply-templates/>
> </xsl:for-each>
Should this be plain text?
<h3 class="title">Examining the CD image</h3>
+ It is possible to mount the cd image to examine the filesystem you
+ just created.
+
So it is missing <p> ... </p> tags around it.
I removed the mode="plaintext"/ part and it worked for me.
But what about other markup matching? I think some generic way is
missing, but for now I will commit this as is -- but keep ticket open so
it is evaluated and fixed correctly.
From: "Jeremy C. Reed" <reed@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/45470 CVS commit: htdocs
Date: Wed, 19 Oct 2011 17:19:36 +0000
Module Name: htdocs
Committed By: reed
Date: Wed Oct 19 17:19:36 UTC 2011
Modified Files:
htdocs/developers/cvs-repos: cvs_intro.html
htdocs/docs: bootcd.html
htdocs/docs/network: wavelan.html
htdocs/docs/network/ipsec: rasvpn.html
htdocs/docs/puffs: rump.html
htdocs/foundation/reports: 2005Q1.html 2005Q2.html 2005Q3Q4.html
2006Q1.html 2006Q2Q3Q4.html 2007Q1.html
Log Message:
missing content now found.
See PR #45470.
To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 htdocs/developers/cvs-repos/cvs_intro.html
cvs rdiff -u -r1.14 -r1.15 htdocs/docs/bootcd.html
cvs rdiff -u -r1.14 -r1.15 htdocs/docs/network/wavelan.html
cvs rdiff -u -r1.18 -r1.19 htdocs/docs/network/ipsec/rasvpn.html
cvs rdiff -u -r1.14 -r1.15 htdocs/docs/puffs/rump.html
cvs rdiff -u -r1.19 -r1.20 htdocs/foundation/reports/2005Q1.html
cvs rdiff -u -r1.18 -r1.19 htdocs/foundation/reports/2005Q2.html \
htdocs/foundation/reports/2006Q1.html \
htdocs/foundation/reports/2006Q2Q3Q4.html \
htdocs/foundation/reports/2007Q1.html
cvs rdiff -u -r1.21 -r1.22 htdocs/foundation/reports/2005Q3Q4.html
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 05 Nov 2011 17:30:35 +0000
State-Changed-Why:
fixed, thanks
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.