[PATCH 3 of 3] templater: add indentation arguments to the fill function
Kevin Bullock
kbullock+mercurial at ringworld.org
Thu Apr 18 16:17:31 CDT 2013
On 18 Apr 2013, at 4:01 PM, Sean Farley wrote:
> # HG changeset patch
> # User Sean Farley <sean.michael.farley at gmail.com>
> # Date 1366318102 18000
> # Thu Apr 18 15:48:22 2013 -0500
> # Node ID 70658c4039a143f9e6d69a5fa11a60780c85c345
> # Parent f4484e9bf540799f60922ab191d88e489b1f7adc
> templater: add indentation arguments to the fill function
>
> diff --git a/mercurial/templatefilters.py b/mercurial/templatefilters.py
> --- a/mercurial/templatefilters.py
> +++ b/mercurial/templatefilters.py
> @@ -97,12 +97,12 @@
> return cgi.escape(text.replace('\0', ''), True)
>
> para_re = None
> space_re = None
>
> -def fill(text, width):
> - '''fill many paragraphs.'''
> +def fill(text, width, initindent, hangindent):
> + '''fill many paragraphs with optional indentation.'''
Heard of optional arguments?
pacem in terris / мир / शान्ति / سَلاَم / 平和
Kevin R. Bullock
More information about the Mercurial-devel
mailing list