Hi Thomas,

I did a little bit more digging.  Putting this in your CSS solves the problem:

textarea#editor-textarea {
    white-space: pre-wrap;

This also does not break the text box in Firefox, so it seems to be a win.

This has been irritating me for months.  If it turns out there are issues with this fix, then I'll post a followup email.

Thanks for your time, and to everyone in the MoinMoin community.

Dave C

On Thu, Nov 14, 2013 at 12:12 PM, Thomas Waldmann <tw@waldmann-edv.de> wrote:
> Google Chrome converts that leading space to a non-breaking space.

Maybe file a bug for chrome?

I think a browser textarea control should not change the text you enter
in any way.

Maybe check if that also happens with a freshly installed chrome (with a
fresh profile, standard settings).

> What I would really like to have happen, is that whenever a wiki page is
> saved, any non-breaking space characters at the front of lines get
> automatically replaced with plain old spaces.
> Is there a recommended way to do this?

Look at the SecurityPolicy, iirc it has a save() method that gets called
before saving.

But that's just a work around, should be fixed where the root cause is.

DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
Moin-user mailing list