Every page online about this says to go to “Format > Paragraph > Borders”, and just select the box with no lines/click “none”. This doesn’t work at all. Is there a different way to get rid of these lines?
How do I get rid of black horizontal lines and prevent them from being generated when I hit "enter"?
Are you selecting the paragraphs before applying no border? There is also an autocorrect option to triple dash.
Add Answer is reserved for solutions.Please, click edit below your question to add more information.
Yes, I’ve tried highlighting the paragraph with the lines, just the lines themselves, and the entire document to get rid of all of them. Nothing works.
Do you have underline set on all your text?
It might be easiest if you can share a sample document with the effect showing. You can click edit just below your question, then click the paperclip icon to upload a .odt. Cheers, Al
Okay. I have uploaded the document. Please note that a lot of the text is actually screenshot images. It is on page 5 where I use regular text and start having problems with the lines. I created the initial lines by using a series of hyphens which changed to a solid line upon pressing enter. Ever since, I cannot press enter without it generating a new line. I can delete the lines with backspace/delete but they just come back when I press enter again.
You can place your cursor in the line and just hit Ctrl
+M
.
The Format > Paragraph, Borders tab also works for me. You’ve to click the Set no borders
icon in the Line Arrangement section, top left of the tab, Presets line.
If you don’t want this to happen anymore, in Tools > AutoCorrect > AutoCorrect options, Options tab, uncheck the entry Apply Border
.
To show the community your question has been answered, please tag the best answer (), and/or vote for any helpful answer. Else, please edit your question to add information (answers are for solutions only).
The Format > Paragraph, Borders tab still doesn’t work for me. In fact, the “set no borders” is always already selected even though this does nothing to get rid of the lines. However, the Ctrl + M seems to have worked, so I will just do that if needed in the future. Thanks.
@createdamadman, actually, you have to click the set no borders “button”, then you should see the bottom border disappear in the preview area. Then click OK button of course.
By default, that set no borders button seems to be activated but it is a glitch IMHO.
The hyphens have been interpreted by AutoCorrect as a request to create a bottom border. This added the border as a direct formatting directive.
In Writer, formatting is applied in three layers:
- the deepest is paragraph style
- the middle one is character style
- the shallowest is direct formatting
Each layer is independent from each other and overrides those deeper.
The problem with direct formatting is: once added, it remains in effect until explicitly cleared with Ctrl
+M
.
When you press Enter
, your new paragraph inherits the direct settings layer of the previous paragraph.
To avoid this, disable AutoCorrect (which was implemented to mimic some features of M$ Word, but this is more harmful than useful because many transformations happen unbeknownst to user) and format exclusively with styles (which when customized are fully under your control). See the Writer Guide for an introduction.
Obviously, your document is direct formatted. You’ll enter into trouble when you reach the proof-reading/formatting adjustment step because you’ll have to track each formatting directive you’ve introduced without any guarantee about consistency across the book.
Your text is a mix of Text Body and Default Paragraph Style (which should not be used for text; it is a “technical” style to set default for all others). You use Heading 2 apparently for its visual effects while this style is part of the chapter/sub-chapter/sub-sub… hierarchy. Don’t use Shift
+Enter
(line break) for Enter
(paragraph break): they are not the same and will change your document structure with adverse effect on formatting. Don’t use empty paragraph to space vertically your text; use the spacing property of paragraph style instead.
To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!