Browse Source

Fix failing tests

* lisp/org.el (org--align-node-property): Properly align properties
  with empty values.
Nicolas Goaziou 3 years ago
parent
commit
288ffa15f5
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lisp/org.el

+ 3 - 1
lisp/org.el

@@ -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 ()