# HG changeset patch # User Pierre-Yves David # Date 2021-01-25 22:07:56 # Node ID 26c5bb8656e8416152e0188a702713197b4030a7 # Parent 2bd77a6d3c2b1b171aff0c4cb45f33eb38cc190e minirst: respect escaping in definition list key If we start adding `:` in command names… we need minirst to not choke on them. Differential Revision: https://phab.mercurial-scm.org/D9869 diff --git a/mercurial/minirst.py b/mercurial/minirst.py --- a/mercurial/minirst.py +++ b/mercurial/minirst.py @@ -158,7 +158,7 @@ def findliteralblocks(blocks): _optionre = re.compile( br'^(-([a-zA-Z0-9]), )?(--[a-z0-9-]+)' br'((.*) +)(.*)$' ) -_fieldre = re.compile(br':(?![: ])([^:]*)(?First item.
ab
Second item. Indentation and wrapping is handled automatically. +
c:d +
a key with colon +
efg::hh +
a key with many colon

Next list: