summaryrefslogtreecommitdiff
path: root/lisp/xml.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/xml.el')
-rw-r--r--lisp/xml.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/xml.el b/lisp/xml.el
index 8d0182e9033..d6a0bc74b45 100644
--- a/lisp/xml.el
+++ b/lisp/xml.el
@@ -323,6 +323,7 @@ This follows the rule [28] in the XML specifications."
(condition-case nil
(progn
(forward-word 1) ;; name of the document
+ (goto-char (- (re-search-forward "[[:space:]]") 1))
(goto-char (- (re-search-forward "[^[:space:]]") 1))
(if (looking-at "\\[")
(re-search-forward "\\][[:space:]]*>" end)