Where do spaces go around quotation marks?
Leave a space between a quoted phrase and the surrounding words. Put the opening and closing marks right against the words or punctuation inside the quote. If the next thing outside the quote is a colon, the colon can sit next to the closing mark. Space then follows the colon.
What Harper flagged
Measured with Harper 3.3.0 on , on this page’s own sentences.
Rule QuoteSpacing
| Sentence | Words flagged | Harper’s message | First suggestion |
|---|---|---|---|
| The note said "Leave your boots here"before giving the time. | " | A quote must be preceded or succeeded by a space. | Replace with: “" ” |
| The sign reads"Keep your pass handy." | " | A quote must be preceded or succeeded by a space. | Replace with: “ "” |
| She wrote "Closed"on a scrap of paper. | " | A quote must be preceded or succeeded by a space. | Replace with: “" ” |
| The note said "Leave your boots here" before giving the time. | No flag from this rule | ||
| The sign reads "Keep your pass handy." | No flag from this rule | ||
| She wrote "Closed" on a scrap of paper. | No flag from this rule | ||
| The guide calls it "a work in progress": the floor is still wet. | No flag from this rule | ||
Why it happens
In the sign example, “reads” introduces the sign’s words. A space lets the reader see where the lead-in ends and the quoted words begin.
After a closing mark, look at what comes next. A word such as “before” needs its own space. A punctuation mark immediately outside the quote follows the spacing for that mark.
Check it by hand
Look at each quote from the inside out. Keep the marks close to the words they enclose, then look for a space where an outside word starts or ends.
Questions people ask
Do I put a space after a comma before a quote?
Yes. A lead-in like “she said,” takes a space before the opening mark.
What if there is a question mark in the quote?
If the quoted words are a question, the question mark can go directly before the closing mark.
Harper’s own description
Harper’s words under Apache-2.0Checks that quotation marks are preceded or succeeded by whitespace.
More rules
Try it
Try a sentence in the free checker. Your text stays on the page.
Grammarnest is being built to check your writing in every app on your computer. Your writing will stay on your computer and will never be sent.
Sources
- Harper project and its Apache-2.0 licence
- Harper v3.3.0 release
- Run on . Full results