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

Fix Frontmatter Parsing with Lines that Start with Tabs #209

Merged
merged 1 commit into from
May 25, 2022

Conversation

pjkaufman
Copy link
Collaborator

Fixes #157

The issue was the parser expected 2 spaces instead of a tab. To remedy this, I have gone ahead and converted tabs to 2 spaces. I am not sure how nested lists would be affected if those are even allowed in the frontmatter. Nevertheless, this should take care of the issue until it is reported that we are using nested lists if this does cause some kind of issue with that.

Changes Made:

  • replaced any number of tabs after a new line character with 2 spaces when parsing the yaml frontmatter
  • Added a test to help us know if the issue is accidentally created again in the future

@pjkaufman pjkaufman added the bug Something isn't working label May 25, 2022
@pjkaufman pjkaufman self-assigned this May 25, 2022
@pjkaufman pjkaufman merged commit e1b4d8f into platers:master May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace tabs by spaces at frontmatter
1 participant