branch: externals/doc-toc commit 977bec00d8d448ad2a5e2e4c17b9c9ba3e194ec2 Author: Daniel Nicolai <dalanico...@gmail.com> Commit: Daniel Nicolai <dalanico...@gmail.com>
Tiny bug fix in toc--tablist-to-handyoutliner --- toc-mode.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/toc-mode.el b/toc-mode.el index cc0ba7f38c..e647df2f37 100644 --- a/toc-mode.el +++ b/toc-mode.el @@ -949,7 +949,7 @@ to `pdfoutline' shell command." (while (not (eobp)) (let* ((v (tabulated-list-get-entry)) (tabs (make-string (string-to-number (aref v 0)) ?\t))) - (setq text (concat text (format "%s %s %s\n" tabs (aref v 1) (aref v 2)))) + (setq text (concat text (format "%s%s %s\n" tabs (aref v 1) (aref v 2)))) (forward-line 1))) (switch-to-buffer (find-file "contents.txt")) (erase-buffer) @@ -958,7 +958,8 @@ to `pdfoutline' shell command." (setq-local doc-buffer source-buffer)) (insert text)) (save-buffer) - (when (and toc-handyoutliner-path toc-file-browser-command) + (if (not (and toc-handyoutliner-path toc-file-browser-command)) + (message "Path to handyoutliner or file browser command not defined") (toc--open-handy-outliner) (toc--open-filepath-in-file-browser)))