[PATCH] man: escape literal newlines

Christian Ebert blacktrash at gmx.net
Fri Jan 30 06:12:53 CST 2009


ping

* Christian Ebert on Monday, January 26, 2009 at 15:49:39 +0100
> Hi Benoît,
> 
> * Benoit Boissinot on Monday, January 26, 2009 at 13:55:10 +0100
>> On Mon, Jan 26, 2009 at 12:23:26PM +0100, Christian Ebert wrote:
>>> * Benoit Boissinot on Monday, January 26, 2009 at 12:12:06 +0100
>>>> On Mon, Jan 26, 2009 at 02:37:24AM +0100, Christian Ebert wrote:
>>>>> # HG changeset patch
>>>>> # User Christian Ebert <blacktrash at gmx.net>
>>>>> # Date 1232933815 -3600
>>>>> # Node ID 1f3de9153551851235e7be1f24ca56a880bb9958
>>>>> # Parent  fa584d23e3ccd14f8b325836675a4f88e1309676
>>>>> man: escape literal newlines
>>>>> 
>>>>> Otherwise they appear as "0" in the manual.
>>>> 
>>>> I don't have any differences with and without this patch, can you give
>>>> an example where there are some problems?
> 
> w/o patch:
> 
> $ hg tip --template "{date|isodate}0
>           2008-08-21 18:22 +0000
> 
> w/ patch:
> 
> $ hg tip --template "{date|isodate}\n"
>           2008-08-21 18:22 +0000
> 
>> Unless I missed something, it works for me with:
>> $ xmlto --version
>> xmlto version 0.0.20
> 
> xmlto version 0.0.18
> 
>> $ man --version
>> man 2.5.2
> 
> man, version 1.6c
> 
> $ asciidoc --version
> asciidoc 8.3.4
> $ sw_vers
> ProductName:	Mac OS X
> ProductVersion:	10.5.6
> BuildVersion:	9G55
> 
> man is shipped with MacOS X, xmlto is from fink, asciidoc is
> latest tip.
> 
> The double -e of sed works with GNU sed (from fink) and shipped
> (probably BSD-like) sed from Mac. Not sure whether this would
> have to be split into 2 sed calls wrt compatibility.
> 
> c

-- 
\black\trash movie    _C O W B O Y_  _C A N O E_  _C O M A_
Ein deutscher Western/A German Western
-->> http://www.blacktrash.org/underdogma/ccc.html
-->> http://www.blacktrash.org/underdogma/ccc-en.html


More information about the Mercurial-devel mailing list