diff --git a/html/ptg.js b/html/ptg.js index 40007b7..bc0fbb9 100644 --- a/html/ptg.js +++ b/html/ptg.js @@ -10,13 +10,14 @@ Handlebars.registerHelper('trackContentLine', function(options) { for (var i = 0; i < words.length; i++) { if (words[i].startsWith("#")) { sentence += '' - + words[i].substring(1) + ' '; + + words[i].substring(1) + ''; } else if (words[i].match(/^https?:\/\//)) { sentence += '' + words[i] + ''; } else { - sentence += words[i] + " "; + sentence += words[i]; } + sentence += ' '; } return new Handlebars.SafeString(sentence); });