Closed ariG23498 closed 1 year ago
Hey @ariG23498 , thanks! Could you add a unit test? Also I think the PydocmdProcessor and SphinxProcessor could use the same change. 😅 If you have any ideas how to avoid replicating that bit of code across the three preprocessors, I'm open to suggestions.
Cheers
Hey @NiklasRosenstein I made a unit test for the PR Feel free to review.
I think I need to look into the enhancement part for the other processors. But if I come up with something will definitely let you know. Cheers!
In the conditional, the parser took for granted that the codeblock did not have any indentation. This made indented codeblocks to be overlooked. This caused problem with the generation of documentation.
I have added a simple
.strip
in the checking scheme itself so that the codeblocks are always triggered.