aboutsummaryrefslogtreecommitdiff
path: root/lib/document-to-html.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-03-28 12:50:16 +0100
committerMichael Williamson <mike@zwobble.org>2016-03-28 13:47:37 +0100
commit1caa452c06f31f35ee5ad15f0e9dae97b928daa3 (patch)
tree4bdd221a945476ba9fd244faf0b20d829390c8b4 /lib/document-to-html.js
parentf31e5ac93358e84a3cd02c53def6dee0906ce3de (diff)
Generated IDs no longer insert a hyphen after the ID prefix
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) {