[PATCH 0 of 8] teach minirst an alternative syntax for ".. note::" and use it V2

Simon Heimberg simohe at besonet.ch
Tue Nov 5 08:06:31 UTC 2013


In V2, only patch 6 has changed. One occurrence of .. note:: was overlooked and 
test-check-code-hg.t failed after patch 7.
Original message:

Patches 1 to 4 teach minirst to accept the admonition "note" on its own paragraph like this:

  .. note::

      note text

Patch 5 changes the test input to the now allowed format.
In patch 6  ".. note::" is followed by two newlines in all documentation strings.
Patch 7 adds a check-code rule which checks that ".. note::" is always followed by two newlines.
Patch 8 improves the matching of the new rule. (optional)

After applying this patches, no docutils version should interprete a note text wrong anymore. It 
was interpreted as (invalid) option block here:
http://hgbuildbot.kublai.com/builders/hg%20tests%20(stable)/builds/29/steps/pure/logs/stdio

Still open is how the html output of minirst should look like. (See changed output in patch 5).


More information about the Mercurial-devel mailing list