1. Luke Plant
  2. semanticeditor
  3. Issues
Issue #31 resolved

Eliminate double spaces and hard spaces

evildmp
created an issue

Some of our users are addicted to using double spaces after full-stops. Is it possible to strip these when the editor saves its content?

Also, can we eliminate   ? - as in:

about research publications by academic staff  

Comments (3)

  1. evildmp reporter

    Some of our users are addicted to using double spaces after full-stops. Is it possible to strip these when the editor saves its content?

    Also, can we eliminate   ? - as in:

    about research publications by academic staff  

  2. Luke Plant repo owner

    Eliminating the hard spaces should be easy.

    Why do you need to eliminate double spaces though? It makes no difference when rendered by the browser in a web page. I'm reluctant to do this kind of munging unless it fixes a real problem - there could easily be cases where it would be a bad thing, like in a 'pre' tag where some code is being posted.

  3. Luke Plant repo owner

    This is fixed in 42fa8cb1ae61

    I have not added removal of double spaces, because it would cause big problems if anyone was posting pre-formatted text (like code samples), and it in normal text double spaces are invisible.

  4. Log in to comment