Skip to content

Commit

Permalink
#2488 Trim spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-podolskiy90 committed Aug 15, 2024
1 parent 3d81ee6 commit 0ebb89d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/webapp/js/docbook/docbook.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// Function to convert HTML to DocBook
function convertToDocBook(html) {
// Trim first
html = html.trim();

// Replace <h> with <title>
// Hacks are needed:
// 1. Title must be inside <section>
Expand Down

0 comments on commit 0ebb89d

Please sign in to comment.