How to insert non-breaking spaces using 'replace all'?
Editing long documents with many people's names, I want to replace the spaces after Mr, Ms, etc, with non-breaking spaces, in order to avoid the situation where the title is at the end of one line and the name on the next: Mr Smith
I'm used to MS Word, where I can do this quickly and simply using 'replace all'. But LibreOffice (which I've been using about a month) doesn't seem to support non-breaking spaces in the replace all function. Finding them manually in a document of several hundred pages, when there are several on each page, is a drag and a time-killer! Is there a way to do this automatically or quickly?
Thanks!
LibreOffice does support non-breaking spaces both in the Find field and in the Replace field. What did you try exactly?
Also, try AltSearch.
I was trying to find something equivalent to the "caret characters" in MS Word, where you can type ^- into the search and replace box and it is interpreted as a non-breaking space. So "find: Mr " and "replace: Mr^-" I found a list of "regular expressions" for LibreOffice but no non-breaking space in there. Found mention of " " somewhere but that didn't work.
There is no need to follow Microsoft's stupidities. Just enter a plain non-breaking space. It works without any regular expressions or similar things.
Well that's what I tried to do initially. But it doesn't work – except by copy paste, as Przemo suggested. There's no way, that I have found, of entering a non-breaking space directly into the find and/or replace box.
A non-breaking space can be entered directly using your operating system/graphic environment conventional method, for example, by
Compose <space> <space>
in Linux. Or right-click, selectSpecial Character
and pick a non-breaking space in the character map.