Fix failing tests
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 31 Aug 2014 09:43:38 +0000 (11:43 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 31 Aug 2014 09:43:38 +0000 (11:43 +0200)
* lisp/org.el (org--align-node-property): Properly align properties
  with empty values.

lisp/org.el

index 72a306b..bc89968 100755 (executable)
@@ -22469,7 +22469,9 @@ Alignment is done according to `org-property-format', which see."
          (looking-at org-property-re))
     (replace-match
      (concat (match-string 4)
-            (format org-property-format (match-string 1) (match-string 3)))
+            (if (match-string 3)
+                (format org-property-format (match-string 1) (match-string 3))
+              (match-string 1)))
      t t)))
 
 (defun org-indent-line ()