Commit 6c1d24c5 authored by Manuel Tancoigne's avatar Manuel Tancoigne

Remove empty lines in generated markdown

parent a8c686fd
......@@ -129,6 +129,11 @@ export default {
let source = this.renderBlocks(this.preparedSource)
source = this.renderConditionals(source)
source = this.renderNumbers(source)
// Remove double empty lines
do {
source = source.replace(/^\n\n/gm, '\n')
} while (/^\n\n/gm.exec(source))
return this.renderVariables(source)
},
renderText () {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment