Date: Thu, 5 Jul 2001 04:24:56 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: doc@freebsd.org Subject: <screen> tag usage and html output Message-ID: <20010705042455.A99324@hades.hell.gr>
next in thread | raw e-mail | index | archive | help
I have been looking at the doc/ sources since last night here, and I noticed that <screen> tags are used almost everywhere with SGML code like the one below: <screen>&prompt.root; <userinput>pkg_add <replaceable>package name</></userinput> </screen> that is, with the closing </screen> tag on a new line, by itself. Looking at the resulting HTML output, this renders in something like: <pre class="SCREEN"> <tt class="PROMPT">#</tt> <tt class="USERINPUT"><b>pkg_add <tt class="REPLACEABLE"><i>package name</i></tt></b></tt> </pre> or even worse in other cases with an extra empty line before the closing </pre> tag. This causes browsers that I have tested (Lynx, Netscape and w3m) to leave more space below a <screen>'s output than what they leave above. The w3m browsers seems to handle the following case nicely: <pre> text here </pre> But Lynx and Netscape seem to do the `right thing' only when given: <pre>text here</pre> Has anybody else seen this in displayed material, when using Netscape? Is there anything we can do about it, except for changing all <screen>-occurences to read <screen>...</screen> (without a newline bfore the closing tag)? -giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010705042455.A99324>