Explorar o código

ox-texinfo.el: Fix node listing description formatting

* 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.
Jonathan Leech-Pepin %!s(int64=12) %!d(string=hai) anos
pai
achega
be9d3bc3a7
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      lisp/ox-texinfo.el

+ 5 - 2
lisp/ox-texinfo.el

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