diff --git a/Shortdesc-helper.js b/Shortdesc-helper.js index 6586ce4..3d6f383 100755 --- a/Shortdesc-helper.js +++ b/Shortdesc-helper.js @@ -776,6 +776,9 @@ window.sdh.main = function () { // Replace hyphens in dates with en dashes newDescription = newDescription.replace( DATEPATTERN, DATEREPLACEMENT ); + // Replace non-breaking spaces with regular spaces + newDescription = newDescription.replace( /\u00A0/g, ' ' ); + // Make edits to Wikidata as appropiate if ( wgQid &&