From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5273 invoked from network); 26 Jun 2022 11:17:02 -0000 Received: from bsd.lv (HELO mandoc.bsd.lv) (66.111.2.12) by inbox.vuxu.org with ESMTPUTF8; 26 Jun 2022 11:17:02 -0000 Received: from fantadrom.bsd.lv (localhost [127.0.0.1]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id 04f59b72 for ; Sun, 26 Jun 2022 06:17:00 -0500 (EST) Received: from scc-mailout-kit-02.scc.kit.edu (scc-mailout-kit-02.scc.kit.edu [129.13.231.82]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id 584dcdd3 for ; Sun, 26 Jun 2022 06:16:59 -0500 (EST) Received: from hekate.asta.kit.edu ([2a00:1398:5:f401::77]) by scc-mailout-kit-02.scc.kit.edu with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (envelope-from ) id 1o5QG9-004Fs3-Rv; Sun, 26 Jun 2022 13:16:58 +0200 Received: from login-1.asta.kit.edu ([2a00:1398:5:f400::72]) by hekate.asta.kit.edu with esmtp (Exim 4.94.2) (envelope-from ) id 1o5QG8-0067su-5g; Sun, 26 Jun 2022 13:16:56 +0200 Received: from schwarze by login-1.asta.kit.edu with local (Exim 4.92) (envelope-from ) id 1o5QG8-0006me-IA; Sun, 26 Jun 2022 13:16:56 +0200 Date: Sun, 26 Jun 2022 13:16:56 +0200 From: Ingo Schwarze To: Mohamed Akram Cc: discuss@mandoc.bsd.lv Subject: Re: mandoc inserts extraneous
tags inside
Message-ID: 
References: <772718FE-24EA-4C24-A9B4-48C24D297561@outlook.com>
X-Mailinglist: mandoc-discuss
Reply-To: discuss@mandoc.bsd.lv
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <772718FE-24EA-4C24-A9B4-48C24D297561@outlook.com>

Hello Mohamed,

Mohamed Akram wrote on Sat, Jun 25, 2022 at 04:28:18PM +0000:

> Thanks for this great and useful tool.

You are welcome.

> I did notice a bug however in mandoc when using HTML output.
> It seems to insert 
tags inside
 sections, which causes
> there to be double newlines since 
 already preserves newlines.
> You can see it in this example which has many code samples in it:
> 
> curl https://raw.githubusercontent.com/apple-oss-distributions/tcl/tcl-134.121.2/tcl_ext/expect/expect/expect.man | mandoc -T html >example.html

I believe that is the following bug already listed in the mandoc TODO file:

- HTML formatting of .nf should avoid 
and not close and re-open
 on .P
  my mail to ports@ 27 Jun 2021 16:09:20 +0200
  loc **  exist **  algo *  size *  imp **

I'm expanding the entry a bit to read:

- HTML formatting of .nf should avoid 
, even when input lines start with whitespace, and not close and re-open
 on .P
  my mail to ports@ 27 Jun 2021 16:09:20 +0200
  reported again by Mohamed Akram 25 Jun 2022 16:28:18 +0000
  loc **  exist **  algo *  size *  imp **

This is one among the bugs likely to get addressed during the next round
of less-important bug fixes.  It is less important in so far as a few
bugs that can crash mandoc are still open.  There is no specific time
frame, but a delay of a few more months is likely.

Thanks for reporting!

Yours,
  Ingo
--
 To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv