Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outline view breaks if heading is empty with a trailing space #218

Open
jonovik opened this issue Apr 14, 2024 · 0 comments
Open

Outline view breaks if heading is empty with a trailing space #218

jonovik opened this issue Apr 14, 2024 · 0 comments

Comments

@jonovik
Copy link

jonovik commented Apr 14, 2024

I'm editing an org-mode document drafted by a colleague, and noticed that the Outline pane showed only the first few headings, or sometimes "No symbols found in document". After some googling, I enabled the development Console and saw "ERR name must not be falsy". After some more trial and error, I think I have identified what breaks the outline view: Asterisks indicating a header, followed only by a space. If it's just the asterisks, the outline does not break. Example:

image

Source code:

* Top level
** Sub level
** Next subheading is empty without a trailing space
**
** Next has a trailing space
** 
** This heading isn't shown in outline
* Nor is this one

Removing the trailing space after the second empty ** header makes outlines work normally.

The "name must not be falsy" error sounds like it might relate exactly to the empty headings, but I don't know the outline source well enough to check.

Now that I know what causes the glitch, it's an easy workaround to make sure headings are not empty. But maybe it's easy to make the outline more robust, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant