Skip to content

Commit c675c8d

Browse files
author
Kang Tu
committed
Remove heading stars from org section heading line
1 parent 3d04acf commit c675c8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ai-code-change.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ The plist contains `:heading-line', `:content', and `:line-number'."
388388
(when org-todo-section-info
389389
(let ((heading-line (plist-get org-todo-section-info :heading-line))
390390
(content (plist-get org-todo-section-info :content)))
391-
(concat heading-line
391+
(concat (replace-regexp-in-string "\\`\\*+ " "" heading-line)
392392
(unless (string-blank-p content)
393393
(concat "\n" content))))))
394394

0 commit comments

Comments
 (0)