Skip to main content
WebDevStudio
Known Participant
March 20, 2017
Answered

Double spaces

  • March 20, 2017
  • 1 reply
  • 5065 views

I need to remove double spaces between words. Is there a formula I can use using the 'find/replace' function.

The issue is, that I'm putting text into paragraphs which hasn't been edited correctly, and there are a lot of double spaces after/ before words.

Note: I'm not trying to remove white-space between <p> <div> etc.

This topic has been closed for replies.
Correct answer Jon Fritz

You can use the F&R tool (Ctrl + F if it's not open) to search for 2 spaces and replace them with a single space. (both the find and replace functions see spaces as characters).

Just make sure you highlight the text you want to affect and choose "Selected Text" from the "Find In" drop down menu. If you don't, it will also remove indenting (DW uses spaces for indenting by default) and you would need to use Edit > Code > Apply Source Formatting to get your indentation back.

1 reply

Jon Fritz
Community Expert
Jon FritzCommunity ExpertCorrect answer
Community Expert
March 20, 2017

You can use the F&R tool (Ctrl + F if it's not open) to search for 2 spaces and replace them with a single space. (both the find and replace functions see spaces as characters).

Just make sure you highlight the text you want to affect and choose "Selected Text" from the "Find In" drop down menu. If you don't, it will also remove indenting (DW uses spaces for indenting by default) and you would need to use Edit > Code > Apply Source Formatting to get your indentation back.

WebDevStudio
Known Participant
March 20, 2017

Thanks Jon.

Though, not the ideal solution, it did work. I was looking for a way of checking the complete site, rather than checking and selecting text on every individual page.