ox-texinfo.el: Fix node listing description formatting
authorJonathan Leech-Pepin <jonathan.leechpepin@gmail.com>
Mon, 25 Feb 2013 17:25:45 +0000 (25 12:25 -0500)
committerJonathan Leech-Pepin <jonathan.leechpepin@gmail.com>
Mon, 25 Feb 2013 17:25:45 +0000 (25 12:25 -0500)
* lisp/ox-texinfo.el (org-texinfo--format-menu): Ensure two spaces
  after :: before including description.  Also adjusted logic to
  insert description on desired column (by accounting for added text
  when inserting node.

lisp/ox-texinfo.el

index 44d466f..a0b913d 100644 (file)
@@ -625,12 +625,15 @@ of the longest menu entry."
                            (desc    (nth 2 name))
                            (length  (nth 0 name))
                           (column  (max
+                                    ;;6 is "* " ":: " for inserted text
                                     length
-                                    org-texinfo-node-description-column))
+                                    (-
+                                     org-texinfo-node-description-column
+                                     6)))
                           (spacing (- column length)
                                    ))
                       (if (> length -1)
-                          (concat "* " title ":: "
+                          (concat "* " title "::  "
                                   (make-string spacing ?\s)
                                   (if desc
                                       (concat desc)))