summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Nicolai <dalanicolai@gmail.com>2023-04-09 23:14:45 +0200
committerDaniel Nicolai <dalanicolai@gmail.com>2023-04-09 23:29:54 +0200
commit4a179fbacd7bc9efbd6cfcdc8772d42935e6de29 (patch)
tree3a1eb3ec3e69b8358bf3ab6193c1b18328c40136
parent6896777c070384e1b78e3121eb3ac29499f6e1cd (diff)
Fix #3, untabify before creating tablist bufferexternals/doc-toc
-rw-r--r--doc-toc.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc-toc.el b/doc-toc.el
index 994fcc5..8b7057c 100644
--- a/doc-toc.el
+++ b/doc-toc.el
@@ -3,7 +3,7 @@
;; Copyright (C) 2022 Free Software Foundation, Inc.
;; Author: Daniel Laurens Nicolai <dalanicolai@gmail.com>
-;; Version: 1.01
+;; Version: 1.02
;; Keywords: tools, outlines, convenience
;; Package-Requires: ((emacs "26.1"))
;; URL: https://github.com/dalanicolai/doc-tools-toc
@@ -674,6 +674,7 @@ adjustment."
(defun doc-toc--convert-to-tabulated-list ()
"Parse and prepare content of current buffer for `doc-toc-tabular-mode'."
(interactive)
+ (untabify (point-min) (point-max))
(goto-char (point-min))
(let (lines
levels)