From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id 33bf3072 for ; Thu, 22 Nov 2018 09:24:33 -0500 (EST) Received: by mail-wr1-f67.google.com with SMTP id q18so9431362wrx.9 for ; Thu, 22 Nov 2018 06:24:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=bpfdzSmr0GrV/3fVqePi44w9DOTZ0engMhfP1fMtL58=; b=BxX/u+ak24FuS+R7LO3GYXxoRvx0Bbcv14nsSUTgs6p5iGuNMNKpOaRyND69PfnpFq 78jmMuV5kaDHairmKjRPNY17K6m4cABrYDzjnIzpWcI3zGpNsI1eBS+WPvVypzO6VK0c G7m+IAbmMSLXtGMzkdy8OKkcGLYiMD8sT9uL03EjA68Sb/ztqyFNIoSwOoH+kAiyIBJ0 M6YwwS0K6MC9g5mKHpliVCUhpbGxY8R/61tcF28yeeS8ERCoT0l6s2tdOe846ko0fZIL 3zEhKE1J4p0rEN3NkJy7EAeQ6BScndhQHrx+0jm1iDKLgdxNFk/gq/7sKSqiUyVBocPr TFzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=bpfdzSmr0GrV/3fVqePi44w9DOTZ0engMhfP1fMtL58=; b=F6t2ZxixvxF1zVJsIKSHYMPV8TruOfhurEcl0n/uK93D1D98VHMn3+5gWxXvtAv9QS 7wrgBaJc6zPPCusRxq7TFVjJ4r20D36AM58FzInlVYAzyt5gkhPtFa2pr3WxsPJVpPcr hDt/RHf9tiHyX0dgXQ9yhip1vrD7E7jkfbmHKgt+KAGLkkGxeo5vD+aWlnzUhNrrUyx+ XY5HYUc0Ultxjnni1lCDwzOBqIqDoPiq/DXPoPulxEDo7uv9KW61Oq10i6zY6yRjOVXY NwvgomDKwFXJgM8IYHi6DTFPeF0+Spaf+3P6CfqWHF6LP1/GWrOlC8znhIi6O3J27Rxz z9Ww== X-Gm-Message-State: AA+aEWZRWMIUZZ1lUhotEf8SPIeXjiZIYcg/+N6oB1vF0b3p/Ji0+Gs/ 0T40efR4Mqc3//5GXQ6Dk98= X-Google-Smtp-Source: AFSGD/XXeOudT2/OfAyjMQcXN4ZCxHzA/dDw64901YShv0qUZY6MsGqsNRA2bSxkJ2JtwXYejSQvhg== X-Received: by 2002:adf:9d85:: with SMTP id p5mr9472510wre.41.1542896670524; Thu, 22 Nov 2018 06:24:30 -0800 (PST) Received: from pali ([2a02:2b88:2:1::5cc6:2f]) by smtp.gmail.com with ESMTPSA id y190-v6sm4076226wmd.41.2018.11.22.06.24.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Nov 2018 06:24:29 -0800 (PST) Date: Thu, 22 Nov 2018 15:24:28 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Ingo Schwarze Cc: discuss@mandoc.bsd.lv Subject: Re: Undesirable space after parenthesis in HTML output Message-ID: <20181122142428.icetmrw6zptlsb3c@pali> References: <20181105200300.rnllxci2uhfj5w47@pali> <20181122140807.GF35604@athene.usta.de> X-Mailinglist: mandoc-discuss Reply-To: discuss@mandoc.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181122140807.GF35604@athene.usta.de> User-Agent: NeoMutt/20170113 (1.7.2) 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 ( test@example.org) > > > > 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 >
Name (test@example.org)
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:
Name (test@example.org) test test test test test Name ( test@example.org)
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 https://mandoc.bsd.lv/ > - 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 pali.rohar@gmail.com -- To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv