##// END OF EJS Templates
releasenotes: use re.MULTILINE mode when checking admonitions...
Craig Ozancin -
r50413:943509a5 default
parent child Browse files
Show More
@@ -70,7 +70,7 b' DEFAULT_SECTIONS = ['
70 70 (b'api', _(b'API Changes')),
71 71 ]
72 72
73 RE_DIRECTIVE = re.compile(br'^\.\. ([a-zA-Z0-9_]+)::\s*([^$]+)?$')
73 RE_DIRECTIVE = re.compile(br'^\.\. ([a-zA-Z0-9_]+)::\s*([^$]+)?$', re.MULTILINE)
74 74 RE_ISSUE = br'\bissue ?[0-9]{4,6}(?![0-9])\b'
75 75
76 76 BULLET_SECTION = _(b'Other Changes')
@@ -387,6 +387,8 b' Testing output for the --check (-c) flag'
387 387
388 388 $ touch a
389 389 $ hg -q commit -A -l - << EOF
390 > commit 2
391 >
390 392 > .. asf::
391 393 >
392 394 > First paragraph under this admonition.
@@ -395,7 +397,7 b' Testing output for the --check (-c) flag'
395 397 Suggest similar admonition in place of the invalid one.
396 398
397 399 $ hg releasenotes -r . -c
398 Invalid admonition 'asf' present in changeset 4026fe9e1c20
400 Invalid admonition 'asf' present in changeset 99fa3c800c5e
399 401
400 402 $ touch b
401 403 $ hg -q commit -A -l - << EOF
@@ -405,7 +407,7 b' Suggest similar admonition in place of t'
405 407 > EOF
406 408
407 409 $ hg releasenotes -r . -c
408 Invalid admonition 'fixes' present in changeset 0e7130d2705c
410 Invalid admonition 'fixes' present in changeset 4737b1b5afd1
409 411 (did you mean fix?)
410 412
411 413 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now