File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -100,20 +100,20 @@ def smart_quotes(text: str) -> str:
100100 Straight quotes are converted to apostrophes if they are the only straight quote
101101 in the word, and have word characters on both sides:
102102
103- I'm there with "George" -> I' m there with " George"
104- "Hello," he said. -> " Hello," he said.
105- "I know!" -> " I know!"
103+ I'm there with "George" -> I’ m there with “ George”
104+ "Hello," he said. -> “ Hello,” he said.
105+ "I know!" -> “ I know!”
106106
107107 Words in 'single quotes' work too -> Words in 'single quotes' work too
108108
109- I'm there -> I' m there
110- I'll be there, don't worry -> I' ll be there, don' t worry
111- X is 'foo' -> X is ' foo'
109+ I'm there -> I’ m there
110+ I'll be there, don't worry -> I’ ll be there, don’ t worry
111+ X is 'foo' -> X is ‘ foo’
112112
113113 A few special rules to better help with English:
114114
115- Jill's -> Jill' s
116- James' -> James'
115+ Jill's -> Jill’ s
116+ James' -> James’
117117
118118 Other patterns are unchanged:
119119
You can’t perform that action at this time.
0 commit comments