idomeneus
idomeneus

Reputation: 153

Replace \n\n with \n\t in Google Docs

I would like to replace two carriage returns (\n\n) with a carriage return and a tab (\n\t) in Google Docs (regular document NOT a spreadsheet). If I enter \n\t in replace with the simple text, as typed, is inserted, not the nonprinting characters. Is this a Google Doc limitation or is there a way to get around it?

Upvotes: 7

Views: 3337

Answers (3)

Elby Cloud
Elby Cloud

Reputation: 101

Looked for this all morning and finally found a response here: https://support.google.com/docs/thread/246167941/how-can-i-remove-double-paragraph-breaks-from-a-large-document?hl=en

Go Mr. Shane! Here's the text in case the article disappears:

*I recommend you make a copy of the file before attempting the following suggestion.

  1. Open the Find and replace tool.
  2. Place a check-mark next to "Use regular expressions (e.g. \n for newline, \t for tab)"
  3. Enter this into the "Find" box: \n(?=\n)
  4. Leave "Replace with" empty (that means do NOT put anything into the box). Click "Replace all"*

Upvotes: 0

Max Krok
Max Krok

Reputation: 9

You can by

  • Ctrl+H then \n+ (46hex code) for search

OR

  • search \n\s - replace with whatever you want

Upvotes: -1

chaos
chaos

Reputation: 124257

You can't do this from inside the Google Docs UI; it doesn't provide a way to specify the actual newline and tab characters for replacement.

Upvotes: 2

Related Questions