logo
search
Formatting Issues

How to Remove Unexpected Line Breaks and Spaces in Word

Maira MehtabMaira Mehtab Sep 27, 2026 871 views

Question details

The user needs to eliminate unexpected text wrapping, wide gaps, and sudden line breaks that occur before names or other text in Word documents.

Product
Word
Device & OS
not provided
Scenario
Fixing inconsistent document layouts where text wraps prematurely and leaves empty gaps on the page.
Observed behavior
Text incorrectly wraps to the next line after a visible space, leaving unnatural gaps at the end of the previous line due to nonbreaking spaces or incorrect indentation.
Before you start

Ensure you are viewing your document in Print Layout mode and have your ribbon expanded so you can easily access the formatting marks and paragraph tools.

Solution 1Recommended

Show Nonprinting Characters and Replace Nonbreaking Spaces

Identify and remove hidden nonbreaking spaces that force text to wrap inappropriately as a single block.

Nonbreaking spaces are designed to keep two words together on the same line. However, if they are used excessively or imported from another source, they can cause the text block to exceed the line width, resulting in premature wrapping and odd gaps.

1
Enable nonprinting characters

Navigate to the Home tab on your Word ribbon and click the Show/Hide ¶ button (the paragraph mark icon) to reveal hidden formatting marks.

2
Locate nonbreaking spaces

Scan the problematic lines for degree symbols (°), which represent nonbreaking spaces in the document.

3
Replace with regular spaces

Highlight the unwanted degree symbol, delete it, and press the Spacebar to insert a regular space. The text should now wrap normally.

Format Documents Seamlessly

Fix Line Breaks and Formatting Issues Easily in WPS Writer

WPS Writer offers an intuitive interface to reveal hidden formatting marks, replace nonbreaking spaces, and adjust paragraph settings effortlessly. It ensures perfect document layout and is fully compatible with Microsoft Word formats.

  1. 1. Open document and reveal marks: Open your file in WPS Writer, go to the Home tab, and click the 'Show/Hide Editing Marks' icon.
  2. 2. Find and replace spaces: Press Ctrl+H to open the Find and Replace dialog, search for nonbreaking spaces, and replace them with standard spaces.
  3. 3. Adjust paragraph layout: Right-click the paragraph, select 'Paragraph', and reset any incorrect right indents to '0'.
One-click toggle to show or hide paragraph marks and hidden characters.Advanced Find and Replace tool to quickly remove unwanted nonbreaking spaces in bulk.Intuitive paragraph layout tools for precise indentation and margin control.Fully compatible with Microsoft Word (.docx) formatting standards.
microsoft office alternative - wps office

Frequently Asked Questions

What is a nonbreaking space in Word and why does it cause gaps?

A nonbreaking space is a special character that prevents two words from being separated at the end of a line. While useful for keeping dates or names together, overusing them forces Word to move the entire block of words to the next line, leaving empty gaps behind.

How can I quickly remove all nonbreaking spaces in my entire document?

You can use the Find and Replace tool. Press Ctrl+H, type '^s' (the code for a nonbreaking space) in the 'Find what' box, type a regular space in the 'Replace with' box, and click 'Replace All'.

Why does my text randomly go to the next line without hitting Enter?

This usually happens due to a restricted right indent, a page margin that is too narrow, or hidden formatting characters like nonbreaking spaces forcing the text to the next line to avoid breaking a block of text.