Text UtilitiesLesson 120Free preview
Remove Extra Spaces
This lesson is part of Web Developer Tools · All levels
Summary
Remove extra spaces removes excess spaces, both at the beginning and end of a line or the row of spaces in the middle of a sentence. Unlike a thoroughly white space cleaner, this tool generally maintains a line structure. The result is that the text is still read with a reasonable wording. Use carefully code or text that intentionally uses spaces for ordering.
Key points
- The main focus is on spaces and tabs, not newlines.
- The row of spaces is replaced by a single space
- Trim each line to prevent the hanging spaces
- Do not remove significant spaces within the code
- Check the text with a manual chart or table
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.