From 36354d67015fa4df924388b5af99ceff0df98b9b Mon Sep 17 00:00:00 2001 From: Radek Krzak Date: Sun, 8 Oct 2017 17:33:59 +0200 Subject: [PATCH] Fix new file command --- FileHeader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FileHeader.py b/FileHeader.py index 7afd26e..70c9238 100644 --- a/FileHeader.py +++ b/FileHeader.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- # @Author: Lime # @Date: 2013-10-28 13:39:48 -# @Last Modified by: qkdreyer -# @Last Modified time: 2017-08-14 16:48:32 +# @Last Modified by: Radek Krzak +# @Last Modified time: 2017-10-08 17:30:41 import os import sys @@ -465,7 +465,7 @@ def new_file(self, path, syntax_type): sublime.error_message('File exists!') return - header = get_header_content(syntax_type, path) + header = render_template(syntax_type, options={'path': path}) try: with open(path, 'w+') as f: