Skip to content

Commit

Permalink
fix CR (Windows line endings) #12
Browse files Browse the repository at this point in the history
  • Loading branch information
kairyou committed Feb 22, 2016
1 parent 44822b1 commit 6426cbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sublime-tmpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def get_code(self, type):
return self.format_tag(code)

def format_tag(self, code):
code = code.replace('\r', '') # replace \r\n -> \n
# format
settings = self.get_settings()
format = settings.get('date_format', '%Y-%m-%d')
Expand Down

0 comments on commit 6426cbb

Please sign in to comment.