org.el (org-fontify-meta-lines-and-blocks-1): Fix bug when fontifying keywords with...
authorBastien Guerry <bzg@altern.org>
Wed, 2 Jan 2013 22:43:53 +0000 (23:43 +0100)
committerBastien Guerry <bzg@altern.org>
Wed, 2 Jan 2013 22:43:53 +0000 (23:43 +0100)
* org.el (org-fontify-meta-lines-and-blocks-1): Fix bug when
fontifying keywords with no value.

lisp/org.el

index cbba5f4..b75ab0e 100644 (file)
@@ -5422,9 +5422,9 @@ by a #."
                 '(font-lock-fontified t invisible t)
               '(font-lock-fontified t face org-document-info-keyword)))
            (add-text-properties
-            (match-beginning 6) (match-end 6)
+            (match-beginning 6) (1+ (match-end 6))
             (if (string-equal dc1 "+title:")
-                '(font-lock-fontified t face org-document-title)
+                '(font-lock-fontified t face org-document-title)
               '(font-lock-fontified t face org-document-info))))
           ((or (equal dc1 "+results")
                (member dc1 '("+begin:" "+end:" "+caption:" "+label:"