Closed d-javu closed 2 months ago
The introduction of CDATA wrapping of code blocks in a73be65 (#187) causes xml2rfc to output an extra line at the end of the code block. This is because the 'end CDATA marker' includes a newline.
The minimal fix seems to be:
--- a/render/xml/renderer.go +++ b/render/xml/renderer.go @@ -533,7 +533,7 @@ func (r *Renderer) codeBlock(w io.Writer, codeBlock *ast.CodeBlock) { } else { r.outs(w, "<![CDATA[") r.out(w, codeBlock.Literal) - r.outs(w, "]]>\n") + r.outs(w, "]]>") } r.outs(w, "</"+name+">") r.cr(w)
The introduction of CDATA wrapping of code blocks in a73be65 (#187) causes xml2rfc to output an extra line at the end of the code block. This is because the 'end CDATA marker' includes a newline.
The minimal fix seems to be: