diff --git a/src/main/webapp/js/docbook/docbook.js b/src/main/webapp/js/docbook/docbook.js index 6fcb73578..fefdbedb9 100644 --- a/src/main/webapp/js/docbook/docbook.js +++ b/src/main/webapp/js/docbook/docbook.js @@ -1,5 +1,8 @@ // Function to convert HTML to DocBook function convertToDocBook(html) { + // Trim first + html = html.trim(); + // Replace with // Hacks are needed: // 1. Title must be inside <section>