"Convert multiple spaces to space" reverts to original


I think this might be a bug in 1.0

On importing files from Word, Scrivener will add one space (sometimes more) at every “hard space” or “non-breaking space”.

When I use the “format>convert>multiple space to space” function, it works fine, but…

When I go to another document and then back, these additional spaces are back…

I have tried this on various files, presuming at first that I did not yet remove those additional spaces.
Once I got suspicous about this, I tried jumping back and forth between only two files : the spaces disappear on using the function, but they reappear as soon as I leave the document and come back to it.

All right, I’ve got this one. There are a couple bugs here, or maybe a bug and a complication–bug being that the extra space is added after the non-breaking space, complication being that non-breaking spaces look the same in Scrivener as regular spaces (when viewing invisibles) and can’t be searched for separately, meaning that using find/replace to fix this, which would be the normal method, is a multi-step process. Convert Multiple Spaces to Space nevertheless seems to recognize the non-breaking space as a distinct character; at least, in my testing, I’m not able to get it to convert a non-breaking space+space combo to a single space, which is as it should be, although you seem to be getting something different here. In any case, for now you should be able to get around this by using find/replace to replace the non-breaking space with a regular space and then using Convert Multiple Spaces to Space to trim that down to a single space, after which it shouldn’t keep propagating.

Thank you for your reply, Jennifer.

Non-breaking spaces seem to be “1 non breaking space + 1 single space” when imported. But on adding more than one file to a project, this “1 single space” added may become 2, or 3 spaces… in the project I’m working on, it went up to 5 additional spaces.
Non-breaking spaces made from withing Scrivener are on their own, but look “smaller” than normal spaces.

As for the “show invisibles” command, I thought this would act on the whole application, but it doesn’t : Those files that were on screen (scrivening of 5 files) when I used it, show invisibles… other files, that were not included in this scrivening will not show them.
The result is that if I add more files to that scrivening, I get some files with invisibles shown, and some others, where I have to set this “on” again…
Is that normal ?

From a purely practical point of view, this is not really interesting : all these single files keep their “invisibles on” and to remove this, I have to look through them all.
Wouldn’t it be easier to apply this to the whole program, instead of single files ?
Easier to use, this is sure…
Easier to program… I do not know…