spatialaudio / nbsphinx

:ledger: Sphinx source parser for Jupyter notebooks
https://nbsphinx.readthedocs.io/
MIT License
451 stars 130 forks source link

Avoid empty "raw" directive #621

Closed mgeier closed 2 years ago

mgeier commented 2 years ago

Closes #620.

If the cell output is empty (or contains only whitespace), the raw directive complains:

WARNING: Content block expected for the "raw" directive; none found.

This has been introduced in #615.

@jdknight Please check if my proposed solution makes sense. If you know a better solution, please let me know!