Skip to content

Commit

Permalink
Detail dialog: use non-breaking space for detail space replacement
Browse files Browse the repository at this point in the history
This prevents some rendering problems due to line breaks.
  • Loading branch information
tomka committed Aug 13, 2018
1 parent 1a39c38 commit 54b83f9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -50,7 +50,7 @@
detail_text.appendChild(document.createElement('br'));
}
// Replace whitespace with a span with respective length
var detail_line = detail_lines[i].replace(/\s/g, ' ');
var detail_line = detail_lines[i].replace(/\s/g, '\u00a0');
detail_text.appendChild(document.createTextNode(detail_line));
}
} else {
Expand Down

0 comments on commit 54b83f9

Please sign in to comment.