Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit be577b7

Browse files
sbmuellerlpil
authored andcommitted
Remove redundant whitespaces from comment format
1 parent 666e9a8 commit be577b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonx/vimsnippets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def get_comment_format():
6969
commentstring = vim.eval("&commentstring")
7070
if commentstring.endswith("%s"):
7171
c = commentstring[:-2]
72-
return (c, c, c, "")
72+
return (c.rstrip(), c.rstrip(), c.rstrip(), "")
7373
comments = _parse_comments(vim.eval("&comments"))
7474
for c in comments:
7575
if c[0] == "SINGLE_CHAR":

0 commit comments

Comments
 (0)