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

Update styles #698

Merged
merged 4 commits into from
Mar 15, 2021
Merged

Update styles #698

merged 4 commits into from
Mar 15, 2021

Conversation

zkamvar
Copy link
Contributor

@zkamvar zkamvar commented Mar 15, 2021

This should address the issue from #696 (comment) and reveal all of the formatting issues that need to be addressed for make check to pass.

There are times when the AST is malformed and does not emit a class for
the code element. We do not want the parser to crash when this happens,
but we also want to notify ourselves that the AST is malformed.

This should not result in an error because as we saw in
carpentries/styles#543, the parser itself can
cause these malformations when the lesson itself renders well. Even
though we fixed the previous issue with an updated parser, problems
still persist:
#696 (comment)

I fully admit that this is a kludge.
I've removed the print condition, because it will just result in an error no matter what (sigh)
Add catch for None type code block in lesson_check
@jcoliver jcoliver merged commit d104f6e into master Mar 15, 2021
@jcoliver jcoliver deleted the update-styles branch March 15, 2021 23:10
@zkamvar
Copy link
Contributor Author

zkamvar commented Mar 16, 2021

The deed is done!

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

Successfully merging this pull request may close these issues.

2 participants