alphapapa / org-make-toc

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

Empty links warn #28

Open psionic-k opened 1 year ago

psionic-k commented 1 year ago

Normalizing away nils in the 4th header component results in org warning the user that they have an empty link. The TOC does not finish generation in this case.

At first I just fixed the string-match-p call, but this will complete without generating user feedback about the empty title.

fixes #27 fixes #13

Signed-off-by: Psionik K 73710933+psionic-k@users.noreply.github.com

alphapapa commented 1 year ago

I appreciate the PR, but with regard to #27, it would be helpful if we decided what to do in plain English before deciding how to change the code. If you'd like, please discuss some ideas there first.