* lisp/info.el (Info-following-node-name-re): Add newline to the list
authorJuri Linkov <juri@jurta.org>
Mon, 24 Oct 2011 05:47:05 +0000 (08:47 +0300)
committerJuri Linkov <juri@jurta.org>
Mon, 24 Oct 2011 05:47:05 +0000 (08:47 +0300)
of allowed characters for leading space.

Fixes: debbugs:9824

lisp/ChangeLog
lisp/info.el

index acefb4f..264a4e8 100644 (file)
@@ -1,3 +1,8 @@
+2011-10-24  Juri Linkov  <juri@jurta.org>
+
+       * info.el (Info-following-node-name-re): Add newline to the list
+       of allowed characters for leading space.  (Bug#9824)
+
 2011-10-24  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * progmodes/octave-inf.el (inferior-octave-mode-map): Fix C-c C-h binding.
index 4ccbeba..b8deb3c 100644 (file)
@@ -2015,7 +2015,7 @@ Submatch 1 is the complete node name.
 Submatch 2 if non-nil is the parenthesized file name part of the node name.
 Submatch 3 is the local part of the node name.
 End of submatch 0, 1, and 3 are the same, so you can safely concat."
-  (concat "[ \t]*"                     ;Skip leading space.
+  (concat "[ \t\n]*"                   ;Skip leading space.
          "\\(\\(([^)]+)\\)?"   ;Node name can start with a file name.
          "\\([" (or allowedchars "^,\t\n") "]*" ;Any number of allowed chars.
          "[" (or allowedchars "^,\t\n") " ]" ;The last char can't be a space.