From 1caa452c06f31f35ee5ad15f0e9dae97b928daa3 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 28 Mar 2016 12:50:16 +0100 Subject: Generated IDs no longer insert a hyphen after the ID prefix --- lib/document-to-html.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/document-to-html.js') diff --git a/lib/document-to-html.js b/lib/document-to-html.js index cb5ec16..96dc740 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -36,7 +36,7 @@ function DocumentConversion(options) { options = _.extend({ignoreEmptyParagraphs: true}, options); var idPrefix = options.idPrefix === undefined ? - Math.floor(Math.random() * 1000000000000000) : + Math.floor(Math.random() * 1000000000000000) + "-" : options.idPrefix; var defaultParagraphStyle = htmlPaths.topLevelElement("p"); @@ -195,7 +195,7 @@ function DocumentConversion(options) { } function htmlId(suffix) { - return idPrefix + "-" + suffix; + return idPrefix + suffix; } function convertTable(element, messages, callback) { -- cgit v1.2.3