From 9919ee51bfbb3ed63b1227d56595f288a38daffe Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Sun, 27 Jun 2021 16:14:22 +0200 Subject: [PATCH] Respect spaces in clustering dialog. Closes #4004. (#4005) --- main/webapp/modules/core/scripts/dialogs/clustering-dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/webapp/modules/core/scripts/dialogs/clustering-dialog.js b/main/webapp/modules/core/scripts/dialogs/clustering-dialog.js index 8fdea9599..c7784a454 100644 --- a/main/webapp/modules/core/scripts/dialogs/clustering-dialog.js +++ b/main/webapp/modules/core/scripts/dialogs/clustering-dialog.js @@ -227,7 +227,7 @@ ClusteringDialog.prototype._renderTable = function(clusters) { var choice = choices[c]; var li = document.createElement('li'); var entry = entryTemplate.cloneNode(); - entry.textContent = choice.v.toString(); + entry.textContent = choice.v.toString().replaceAll(' ', '\xa0'); entry.addEventListener('click', onClick); li.append(entry); if (choice.c > 1) {