aboutsummaryrefslogtreecommitdiff
path: root/lib/document-to-html.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/document-to-html.js')
-rw-r--r--lib/document-to-html.js4
1 files changed, 2 insertions, 2 deletions
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) {