alphapapa / org-make-toc

Automatic tables of contents for Org-mode files
GNU General Public License v3.0
108 stars 18 forks source link

whitespace before :CONTENTS: and :END: drawer markers regexp failure #17

Closed progfolio closed 2 years ago

progfolio commented 3 years ago

fixed by #15

nullman commented 2 years ago

I'm also experiencing this issue as my org setup has drawer markers indented at my heading level. Example:

* Table of Contents
  :PROPERTIES:
  :TOC: :include all
  :END:

  :CONTENTS:
  :END:

Please change the regexp for drawer markers to account for white space at the line start. Thanks.

alphapapa commented 1 year ago

Thanks.

alphapapa commented 1 year ago

@nullman Should be fixed now. Thanks.