Skip to content

Commit

Permalink
Merge pull request #291 from duschata/duschata_issue-281
Browse files Browse the repository at this point in the history
creating an not prettyPrinted Document for sect2 pages fixes the bug
  • Loading branch information
rdmueller committed Mar 28, 2019
2 parents f1a9ca4 + b558efc commit 46a1aa4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/asciidoc2confluence.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,8 @@ config.confluence.input.each { input ->
def title = sect2.select('h3').text()
pageAnchors.putAll(recordPageAnchor(sect2.select('h3')))
sect2.select('h3').remove()
def body = sect2
def body = Jsoup.parse(sect2.toString(),'utf-8', Parser.xmlParser())
body.outputSettings(new Document.OutputSettings().prettyPrint(false))
def subPage = [
title: title,
body: body
Expand Down

0 comments on commit 46a1aa4

Please sign in to comment.