diff --git a/src/collective/texttospeech/static/main.js b/src/collective/texttospeech/static/main.js index 2a89da1..cb81ea9 100644 --- a/src/collective/texttospeech/static/main.js +++ b/src/collective/texttospeech/static/main.js @@ -34,7 +34,8 @@ var MainView = (function() { } } else { responsiveVoice.speak( - $('#content').text(), + // For some firefox we need to take out the spaces + $('#content').text().replace(/\s+/g, ' ').trim(), this.voice, { onstart: $.proxy(this.onstart, this), onend: $.proxy(this.onend, this)