NetBSD Problem Report #61054

From www@netbsd.org  Tue Nov 24 05:09:47 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id D321B1A923B
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 24 Nov 2026 05:09:46 +0000 (UTC)
Message-Id: <20261124050945.9918A1A923D@mollari.NetBSD.org>
Date: Tue, 24 Nov 2026 05:09:45 +0000 (UTC)
From: rwhitlock22@gmail.com
Reply-To: rwhitlock22@gmail.com
To: gnats-bugs@NetBSD.org
Subject: NetBSD Guide ASCII art doesn't line up correctly
X-Send-Pr-Version: www-1.0
X-From4GNATS: "rwhitlock22@gmail.com via gnats" <gnats-admin@NetBSD.org>

>Number:         61054
>Category:       misc
>Synopsis:       NetBSD Guide ASCII art doesn't line up correctly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 24 05:10:01 +0000 2026
>Last-Modified:  Wed Nov 25 03:20:01 +0000 2026
>Originator:     Robert Whitlock
>Release:        N/A
>Organization:
>Environment:
Safari
>Description:
The ASCII art diagram at https://www.netbsd.org/docs/guide/en/chap-inetd.html#chap-inetd-whats-inetd doesn't render correctly. The characters aren't in their intended positions, probably because its author expected a fixed width font, however the web site renders it with a variable width font.
>How-To-Repeat:
Go to the web site above in a web browser that renders the text with a variable width font. I expect most any bitmapped (not terminal text mode) browser would satisfy this requirement.
>Fix:
Put the text in an HTML pre tag with CSS property font-family: monospace. There's probably another way to achieve the same effect.

Examining the source code shows that the ASCII art diagram is in a <div class="literallayout"> block but I don't seem to be able to find any definition for that class, in CSS or otherwise. Perhaps the fix is to restore the definition of class literallayout.

>Audit-Trail:
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/61054 CVS commit: htdocs/docs/guide/en
Date: Tue, 24 Nov 2026 05:16:21 +0000

 Module Name:	htdocs
 Committed By:	riastradh
 Date:		Tue Nov 24 05:16:21 UTC 2026

 Modified Files:
 	htdocs/docs/guide/en: chap-inetd.xml

 Log Message:
 chap-inetd: Use monospaced literal layout for inetd diagram.

 Let's see if this fixes:

 PR misc/61054: NetBSD Guide ASCII art doesn't line up correctly


 To generate a diff of this commit:
 cvs rdiff -u -r1.3 -r1.4 htdocs/docs/guide/en/chap-inetd.xml

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Rob Whitlock <rwhitlock22@gmail.com>
To: gnats-bugs@netbsd.org
Cc: misc-bug-people@netbsd.org,
 gnats-admin@netbsd.org,
 netbsd-bugs@netbsd.org
Subject: Re: PR/61054 CVS commit: htdocs/docs/guide/en
Date: Tue, 24 Nov 2026 22:19:09 -0500

 > On Nov 24, 2026, at 12:20 AM, Taylor R Campbell <riastradh@NetBSD.org> =
 wrote:
 >=20
 > Let's see if this fixes:
 >=20
 > PR misc/61054: NetBSD Guide ASCII art doesn't line up correctly

 It displays correctly now. I found another instance of ASCII art at

 https://www.netbsd.org/docs/guide/en/chap-dns.html#chap-dns-bg-namespace

 It turns out that there are many other instances of usage of the =
 literallayout class, which can be found by searching the source of the =
 one-page guide at https://www.netbsd.org/docs/guide/en/netbsd.html for =
 "literallayout". Many of these instances are columnar tables rendered =
 with text, such as=20

 =
 https://www.netbsd.org/docs/guide/en/chap-edit.html#chap-edit-vi-tut-switc=
 h-to-edit-mode

 and so they would benifit from receiving the monospace treatment also. =
 It seems that the literallayout class was intended to have a monospace =
 font, so it would probably be better to attach the monospace =
 specification to the literallayout class rather than add it to all 26 =
 instances of its use.=

NetBSD Home
NetBSD PR Database Search

(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.