Gray Boxes in Text

Discuss the word processor
Post Reply
Writer_Girl
Posts: 2
Joined: Sun Aug 20, 2017 6:41 pm

Gray Boxes in Text

Post by Writer_Girl »

I have a story (I didn't write it) and the formatting is really strange. I'm not sure why there are gray boxes inside the text. What are they and how do I get rid of them? I did notice that I can delete them like they were a space, but I'm hoping there might be an easier way since there are a lot of them.
Attachments
OpenOfficeSample.jpg
OpenOffice 4.1
User avatar
RoryOF
Moderator
Posts: 34618
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Gray Boxes in Text

Post by RoryOF »

These are non-breaking spaces. Select one of them, use /Edit /Find and Replace; the selected character should appear in the Find box (although not gray). Click on the Replace box and enter a space character, then press Replace all.

If you leave them alone, they will not print as gray boxes, merely as spaces. You can hide them by clicking on /View /Field shadings.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
User avatar
Zizi64
Volunteer
Posts: 11361
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Gray Boxes in Text

Post by Zizi64 »

Please upload a real ODF type sample file here.

The "boxes" probably are non breaking spaces or fields with a whitespace content, or other objects like the "list bullets with whitespace content"...
We can not examine them on a picture...
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Writer_Girl
Posts: 2
Joined: Sun Aug 20, 2017 6:41 pm

Re: Gray Boxes in Text

Post by Writer_Girl »

I've never heard of a non-breaking space before. Thank you for your quick help.
The find and replace fixed everything! What a relief.

But now I have a related question. If I wanted to insert a non-breaking space, how would I do that? I figure it would be good to know how to add them as well as delete them.

I will upload the Open Office file next time I have a question.
OpenOffice 4.1
User avatar
Zizi64
Volunteer
Posts: 11361
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Gray Boxes in Text

Post by Zizi64 »

Shift-Ctrl-SPACE
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
Posts: 11361
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Gray Boxes in Text

Post by Zizi64 »

The non breaking spaces will not be to resized when the paragraph will be adjusted as "Justified". For example between the engineering units and the numeric values like
12.34 °C (where normal space character means the non breaking space) looks better than the justified white spaces:
12.34___°C (the underline characters mean the justified - resized - normal whitespace character)
Last edited by Zizi64 on Sun Aug 20, 2017 8:28 pm, edited 1 time in total.
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
RoryOF
Moderator
Posts: 34618
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Gray Boxes in Text

Post by RoryOF »

You can also insert them using /Insert /Formatting mark
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Post Reply