which has a different level of indentation for the 1st line and the rest of the code.
This patch addresses the issue by reuseing the indent removal code in #tomdoc and strips the prefixed indent for each line and then recombine, so that the result will have the same indent leval you can run through as a code snippet.
If you have a tomdoc like:
tomdoc.examples[0]
would becomewhich has a different level of indentation for the 1st line and the rest of the code.
This patch addresses the issue by reuseing the indent removal code in #tomdoc and strips the prefixed indent for each line and then recombine, so that the result will have the same indent leval you can run through as a code snippet.