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

Find and replace double spaces with tab

Enthusiast ,
Jul 10, 2017 Jul 10, 2017

I have a document in which I want to do dot leaders. The text is all set (a couple of pages) and there are two spaces at the end of on each line where I want to have a tab so I can do dot leaders. Is there a way I can replace a double space with a tab using find and replace?

id-dotldr-shot.jpg

Thanks to those who know more than me,

Joe

8.2K
Translate
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

correct answers 1 Correct answer

Community Expert , Jul 10, 2017 Jul 10, 2017

Well ... type two spaces in the Find Text field and enter a Tab code in the Replace With field (which is "^t"). That ought to do it, unless you are not sure if all of your double spaces should be replaced?

Translate
Community Expert ,
Jul 10, 2017 Jul 10, 2017

Well ... type two spaces in the Find Text field and enter a Tab code in the Replace With field (which is "^t"). That ought to do it, unless you are not sure if all of your double spaces should be replaced?

Translate
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
Participant ,
Jul 10, 2017 Jul 10, 2017

Yes, you can use FIND/Replace to replace a double space with a tab. It's very easy and very useful.  🙂

Find:Replace.png

Translate
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 ,
Jul 10, 2017 Jul 10, 2017

This is where your good friend the Edit>Find/Change... menu command comes in ...

  • Highlight all your index text where you want to make the substitution. This precludes InDesign from making changes where you don't want them made.
  • Select the Edit>Find/Change... menu command.

This opens the Find/Change dialog box. From here, it's as simple as 1-2-3:

  • Go to the Search: options box and choose Selection.

1.jpg

  • In the Find What: edit box, type two spaces. Go to the @ button to the right of the Change To: edit box and select Tab. You'll see that it automatically puts the characters ^t in the edit box. That's InDesign data-speak for Tab.

2.jpg

  • Click the Change All button and it will change all the double-spaces to tabs and your dot leaders will shine through and align the page numbers with the tab you've got set up in your index. Then click the Done button to get back to your updated InDesign document.

3.jpg

1-2-3. Done Deal.

Translate
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
Enthusiast ,
Jul 10, 2017 Jul 10, 2017
LATEST

Thanks to all, I used Jongware's solution because it was the first.

Thanks,

Joe

Translate
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