bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #60637] [man] HTML rendering of multiple documents doesn't make muc


From: G. Branden Robinson
Subject: [bug #60637] [man] HTML rendering of multiple documents doesn't make much sense
Date: Wed, 19 May 2021 08:34:35 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

URL:
  <https://savannah.gnu.org/bugs/?60637>

                 Summary: [man] HTML rendering of multiple documents doesn't
make much sense
                 Project: GNU troff
            Submitted by: gbranden
            Submitted on: Wed 19 May 2021 12:34:33 PM UTC
                Category: Macro - man
                Severity: 4 - Important
              Item Group: Incorrect behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

When rendering to the HTML device, we should consider making the man package
abort if it encounters another .TH call after the first; the output HTML in
its current form doesn't seem to even contemplate this scenario.

Input (degenerate but valid):

.TH foo 1 2021-05-19 "groff foo test suite"
.TH bar 1 2021-05-19 "groff bar test suite"


Output:

<!-- Creator     : groff version 1.23.0.rc1.467-a060 -->
<!-- CreationDate: Wed May 19 22:32:07 2021 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd";>
<html>
<head>
<meta name="generator" content="groff -Thtml, see www.gnu.org">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="Content-Style" content="text/css">
<style type="text/css">
       p       { margin-top: 0; margin-bottom: 0; vertical-align: top }
       pre     { margin-top: 0; margin-bottom: 0; vertical-align: top }
       table   { margin-top: 0; margin-bottom: 0; vertical-align: top }
       h1      { text-align: center }
</style>
<title>foo</title>

</head>
<body>

<h1 align="center">foo</h1>

<hr>

 
<p style="margin-top: 1em">bar</p>
<hr>
</body>
</html>


So the first page rendered gets the title tag and the h1 header, and
subsequent pages get...a paragraph.

That's total nonsense.  We shouldn't do that.





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60637>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]