We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question

Double Space After Period [closed]

asked 2014-06-05 20:59:39 +0200

shrankaplooza gravatar image

updated 2021-05-29 17:51:39 +0200

Alex Kemp gravatar image

Hey guys, I need to insert 2 spaces after periods at the end of a sentence for APA format and my professor. I can't seem to figure out any way to do this... Is the only way to hit space twice? Thanks in advance! Jesse

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-02-24 21:04:42.763882


Errm.... Am I missing something? Is that too much work? Do you want an app to do that for you? Or do you have existing documents with a full-stop/period + single-space pattern you need to now put double spaces into??

David gravatar imageDavid ( 2014-06-05 22:00:58 +0200 )edit

Well, I've single spaced after a period for my entire life, so it's as natural as breathing. If you had to take 2 breaths for every one, it'd be a tad laboring, no? lol. But yes, currently I have written a document with single space after a punctuation that I would like to know if I can add 2 spaces there instead.

shrankaplooza gravatar imageshrankaplooza ( 2014-06-05 22:11:58 +0200 )edit

Does the regex "[a-zäöüß0-9]\. " (the last character is a space) that would implement an enhanced variant of what David suggested for a German writer, e.g., cover what you wanted to replace by one found character followed by a full stop and TWO spaces? This could easily be done by 'Find & Replace'. But you might find some replacements that weren't actually in your mind because this "end of a sentence" pattern may occur in other places, too.

Lupp gravatar imageLupp ( 2014-06-05 22:22:03 +0200 )edit

@shrankaplooza "I've single spaced after a period for my entire life...." - I feel for you. Me too, and that's a fair few decades in my case - maybe yours, too! An attempt at an answer below...

David gravatar imageDavid ( 2014-06-06 00:00:10 +0200 )edit

Thanks for the answer David, I really appreciate it!

shrankaplooza gravatar imageshrankaplooza ( 2014-06-06 16:24:23 +0200 )edit

I fully understand the problem because I had it too. Not only could I not enter 2 spaces after the end of a sentence I couldn't enter 2 or more spaces consecutively for any reason. Spaces can be added manually by entering Alt + 0160. You can enter as many as you want. It is a bit awkward but it does work.

srice gravatar imagesrice ( 2015-11-26 02:49:53 +0200 )edit

@srice : The character you enter this way is U+00A0 (xA0 = 160) which is a non-breaking space. You may more easily enter it in LibreOffice Writer by Ctrl+Shift+Space. I do not think, however, this was what @shrankaplooza looked for.

Lupp gravatar imageLupp ( 2015-11-28 12:05:49 +0200 )edit

1 Answer

Sort by » oldest newest most voted

answered 2014-06-06 00:00:18 +0200

David gravatar image

updated 2014-06-06 00:40:29 +0200

Two scenarios in view, here. One is to get auto-double-spaces-after-periods while you type. I haven't worked that one out. The other has at least a partial solution:

Adding "double-spaces-after-full-stop" in an existing single-space document

  1. Make a copy of your document; work on the copy. If this mangles things, there's no harm done; you still have your original.
  2. Hit CTRL+H to bring up the search replace dialog. Click the "Other Options" toggle to reveal the "Regular expressions" check box - make sure it is checked.
  3. Use the following string as your "Search for" string (explanation below):
  4. Use the following string in the "Replace with" box:
    $1 $3     ( = two spaces between $1 and $3)
  5. To see what this will find, click "Find all". You'll see the selection highlighting come up...
  6. ...and if you're satisfied, click "Replace all".
  7. You probably will need now to search for those predictable cases where you want to reduce a double-space to a singe-space.

Search/Replace string explanation (Refer to the LibreOffice and OpenOffice regular expressions help pages):

  • Search = ([\?\.!’”\)\]]) = 1. find all period, question mark, exclamation mark, close quotes, brackets, etc | that are followed by ([:space:]) = 2. a single space | that are followed by ([[:alpha:]‘“\(\[]) = 3. any alpha-character or open quotes, brackets, etc.
  • Replace = $1 = whatever was found in the first part of the search | [two spaces] | $3 = whatever was found in the third part of the search

Could look something like this:



  • You'll want double-space after question marks and exclamation marks too, and the search string caters for this (that's the \?\.! bit in the first part of the search string).
  • You may want to remove the close-brackets in the first part of the search string as it would find (really) things like that -- i.e., the space between really) and things.
  • In the screenshot, the single space between "Mr." and "Jenkins" will get doubled. Nothing you can do about that, but you'll be able to spot fairly quickly these sorts of "false positives" that will need to be fixed.
  • This search excludes hits like Dec. 25, since the string following the dot-space combo must be an alpha or appropriate punctuation.
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-06-05 20:59:39 +0200

Seen: 2,568 times

Last updated: Jun 06 '14