Stop Flare from inserting spaces inside <pre> tag
Posted: Thu May 19, 2016 10:12 am
I've got code samples in <pre> tags. The problem is that when I insert a tag inside the <pre> tag, Flare inserts spaces on the left to prettify the HTML. The problem is that this is inside a <pre> tag, so those spaces are preserved, messing up the code format.
Is there a way to stop this from happening? The only solution I've found is to insert an extra blank line at the top of my code, which is ugly, as well as a bit of a pain.
(If it matters, I need to add a <code> tag inside the <pre> tag to use a syntax highlighter, prism. I initially thought that the spaces were being inserted on the editing side, but just discovered that it is worse: the are inserted when the HTML is generated. That's right, friends, Flare inserts spaces inside of a <pre> tag when building the HTML. A <pre> tag, the one that preserves spaces. )
Is there a way to stop this from happening? The only solution I've found is to insert an extra blank line at the top of my code, which is ugly, as well as a bit of a pain.
(If it matters, I need to add a <code> tag inside the <pre> tag to use a syntax highlighter, prism. I initially thought that the spaces were being inserted on the editing side, but just discovered that it is worse: the are inserted when the HTML is generated. That's right, friends, Flare inserts spaces inside of a <pre> tag when building the HTML. A <pre> tag, the one that preserves spaces. )