[PATCH 1 of 2] help: strip doctest from dochelp

Yann E. MORIN yann.morin.1998 at free.fr
Fri Mar 9 16:42:23 CST 2012


All,

On Friday 09 March 2012 23:36:45 Yann E. MORIN wrote:
> # HG changeset patch
> # User "Yann E. MORIN" <yann.morin.1998 at free.fr>
> # Date 1331330057 -3600
> # Node ID de00e433c8be1b7538ee675c31905468603c31e8
> # Parent  60cc3a0d224972e0fca00fe93f0488b5e4a60c7c
> help: strip doctest from dochelp
> 
> When a dochelp string contains doctest code, the doctest
> code is not stripped, so the help also displays the doctest.
> 
> Just stop parsing dochelp at the first hint of a doctest
> section (starting with >>>).

Altough I did some tests, and the help output I tried did not change, I
have no idea how this could possibly impact the help system as a whole.

I am ready to read comments and suggestions on how to do it better.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'


More information about the Mercurial-devel mailing list