Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Double spaces

Community Beginner ,
Mar 20, 2017 Mar 20, 2017

Copy link to clipboard

Copied

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.

Views

4.7K
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 20, 2017 Mar 20, 2017

Copy link to clipboard

Copied

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.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 20, 2017 Mar 20, 2017

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines