docs: don't use :hg: at the beginning of lines in notes (issue3397) stable
authorMads Kiilerich <mads@kiilerich.com>
Wed, 25 Apr 2012 23:28:54 +0200
branchstable
changeset 16510 c7c9473fcc46
parent 16509 eab9119c5dee
child 16511 ecd2fbe68b25
docs: don't use :hg: at the beginning of lines in notes (issue3397) It seem like docutils 0.8 interpret ':hg:`command`' roles at the beginning of indented lines in '.. note::' directives as a field that is an invalid argument to the directive. It fails with 'Error in "note" directive: invalid option block.' Docutils 0.7 accepted this arguably incorrect markup. Reflowing the text makes the problem go away. A leading '\ ' could perhaps also be used to mask the problem.
mercurial/help/patterns.txt
--- a/mercurial/help/patterns.txt	Sun Apr 22 20:06:36 2012 +0200
+++ b/mercurial/help/patterns.txt	Wed Apr 25 23:28:54 2012 +0200
@@ -7,8 +7,8 @@
 Alternate pattern notations must be specified explicitly.
 
 .. note::
-  Patterns specified in ``.hgignore`` are not rooted. Please see
-  :hg:`help hgignore` for details.
+  Patterns specified in ``.hgignore`` are not rooted. 
+  Please see :hg:`help hgignore` for details.
 
 To use a plain path name without any pattern matching, start it with
 ``path:``. These path names must completely match starting at the