Skip to content

Commit 06c9e1c

Browse files
committed
use rstrip
1 parent 184cdce commit 06c9e1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/search/parse_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,5 +106,5 @@ def parse_content(content):
106106
content = content[1:]
107107

108108
# converting newlines to ". "
109-
content = '. '.join([text.strip() for text in content])
109+
content = '. '.join([text.strip().rstrip('.') for text in content])
110110
return content

0 commit comments

Comments
 (0)