help / color / mirror / Atom feed
From: "Pali Rohár" <pali.rohar@gmail.com>
To: Ingo Schwarze <schwarze@usta.de>
Cc: discuss@mandoc.bsd.lv
Subject: Re: Undesirable space after parenthesis in HTML output
Date: Thu, 22 Nov 2018 15:24:28 +0100	[thread overview]
Message-ID: <20181122142428.icetmrw6zptlsb3c@pali> (raw)
In-Reply-To: <20181122140807.GF35604@athene.usta.de>

On Thursday 22 November 2018 15:08:07 Ingo Schwarze wrote:
> Hi Pali,
> Pali Rohar wrote on Mon, Nov 05, 2018 at 09:03:00PM +0100:
> > For following sequence in manpage
> > 
> >   Name (\fItest@example.org\fR)
> > 
> > mandoc's HTML output prints following:
> > 
> >   Name ( <i>test@example.org</i>)
> > 
> > It adds additional space after left parenthesis, which looks really
> > horrible.
> With -current mandoc code, i can't seem to reproduce your issue:
> $ echo 'Name (\\fItest@example.org\\fR)' | mandoc -T html | grep Name
> <div class="manual-text">Name (<i>test@example.org</i>)</div>

Hi! Try this:

$ printf "%s\ntest test test test test %s\n" 'Name (\fItest@example.org\fR)' 'Name (\fItest@example.org\fR)' | mandoc -T html

I got following output:

<div class="manual-text">Name (<i>test@example.org</i>) test test test test test
  Name ( <i>test@example.org</i>)</div>
<table class="foot">

First Name is correct, second Name not.

Just for verification:

$ printf "%s\ntest test test test test %s\n" 'Name (\fItest@example.org\fR)' 'Name (\fItest@example.org\fR)'
Name (\fItest@example.org\fR)
test test test test test Name (\fItest@example.org\fR)

> Which version of mandoc are you using?  Please state:
>  - operating system name and version

Debian 9.6

>  - whether contained in the base system, installed from a package,
>    or compiled from source

Tested both which is available in the repository and also compiled from
source which is available from "Newest release tarball" at

>  - if from a package, package manager name (e.g. pkgsrc, homebrew, dpkg)
>    and package name and version number

$ apt install mandoc

current package version is 1.13.3-3+b1

>  - if from source, tarball name or CVS checkout date and time

"Newest release tarball" downloaded 2018-11-22.

> > In utf8, ps and pdf outputs it is correct without additional space:
> > 
> >   Name (test@example.org)
> Yes, that is how it is supposed to look like.
> Yours,
>   Ingo

Pali Rohár
 To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv

  reply	other threads:[~2018-11-22 14:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-05 20:03 Pali Rohár
2018-11-22 14:08 ` Ingo Schwarze
2018-11-22 14:24   ` Pali Rohár [this message]
2018-11-23 19:30     ` Ingo Schwarze
2018-11-23 20:22       ` Pali Rohár

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:

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

  git send-email \
    --in-reply-to=20181122142428.icetmrw6zptlsb3c@pali \
    --to=pali.rohar@gmail.com \
    --cc=discuss@mandoc.bsd.lv \
    --cc=schwarze@usta.de \


* 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).