discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Mohamed Akram <mohd.akram@outlook.com>
To: "discuss@mandoc.bsd.lv" <discuss@mandoc.bsd.lv>
Subject: mandoc inserts extraneous <br> tags inside <pre>
Date: Sat, 25 Jun 2022 16:28:18 +0000	[thread overview]
Message-ID: <772718FE-24EA-4C24-A9B4-48C24D297561@outlook.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 461 bytes --]

Hi folks,

Thanks for this great and useful tool. I did notice a bug however in mandoc when using HTML output. It seems to insert <br> tags inside <pre> sections, which causes there to be double newlines since <pre> 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

[-- Attachment #2: Type: text/html, Size: 1178 bytes --]

             reply	other threads:[~2022-06-25 16:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-25 16:28 Mohamed Akram [this message]
2022-06-26 11:16 ` Ingo Schwarze
2022-06-26 16:41   ` Mohamed Akram
2022-06-26 17:02     ` Ingo Schwarze
2022-06-26 17:29       ` Mohamed Akram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=772718FE-24EA-4C24-A9B4-48C24D297561@outlook.com \
    --to=mohd.akram@outlook.com \
    --cc=discuss@mandoc.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).