Replies: 1 comment
-
Alternatively, how can I remove all whitespace but explicitly insert a newline? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am producing Markdown with Jinja2. As Markdown uses spaces/tabs, I need to be careful about indentation, so I have
trim_blocks
andlstrip_blocks
enabled. At the same time, I do need newlines between Markdown blocks. My question: is there a way to remove spaces and tabs but leave newlines as they are? I have tried to use manual whitespace control but the only thing that helped in the end was to remove whitespace from the code, which makes it less readable.Beta Was this translation helpful? Give feedback.
All reactions