emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/toc-org e9cf57041a 008/128: fix heading regexp


From: ELPA Syncer
Subject: [nongnu] elpa/toc-org e9cf57041a 008/128: fix heading regexp
Date: Sun, 2 Jan 2022 09:59:05 -0500 (EST)

branch: elpa/toc-org
commit e9cf57041abcfb18be037015c87f9708513c8b83
Author: Sergei Nosov <sergei.nosov@gmail.com>
Commit: Sergei Nosov <sergei.nosov@gmail.com>

    fix heading regexp
    
    '*' symbol is also used for making text *BOLD*
---
 org-toc.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/org-toc.el b/org-toc.el
index 20a95372e6..be25c20e27 100644
--- a/org-toc.el
+++ b/org-toc.el
@@ -37,7 +37,7 @@
 ;; headline with a :TOC: tag will be updated with the current table of
 ;; contents.
 
-;; For details, see https://github.com/snosov1/org-toc/README.org
+;; For details, see https://github.com/snosov1/org-toc
 
 ;;; Code:
 
@@ -72,7 +72,7 @@ i.e. simply flush everything that's not a heading."
     (with-temp-buffer
       (insert content)
       (goto-char (point-min))
-      (keep-lines "^\*")
+      (keep-lines "^\*+[ ]")
 
       ;; don't include the TOC itself
       (goto-char (point-min))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]