ProjectDjangoTagsMenu/DjangoTagsMenuHandler.py

changeset 35
e98f7b5ed394
parent 34
78bda568c0a1
child 39
c75a95d5cfd4
--- a/ProjectDjangoTagsMenu/DjangoTagsMenuHandler.py	Sat Dec 31 13:50:51 2016 +0100
+++ b/ProjectDjangoTagsMenu/DjangoTagsMenuHandler.py	Wed Mar 08 19:32:19 2017 +0100
@@ -1356,7 +1356,7 @@
             templateText = '{{# {0} #}}'.format(selectedText)
             replace = True
         elif tag == "multilinecommentselect":
-            templateText = '{{% comment %}} {0} {{% endcomment }}'.format(
+            templateText = '{{% comment %}} {0} {{% endcomment %}}'.format(
                 selectedText)
             replace = True
         elif tag == "singlelinecommentdialog":
@@ -1373,13 +1373,13 @@
                 None, self.tr("Multi Line Comment"),
                 self.tr("Enter comment:"), "")
             if ok:
-                templateText = '{{% comment %}} {0} {{% endcomment }}'.format(
+                templateText = '{{% comment %}} {0} {{% endcomment %}}'.format(
                     comment)
         elif tag == "singlelinecommentclipboard":
             templateText = '{{# {0} #}}'.format(
                 QApplication.clipboard().text().strip())
         elif tag == "multilinecommentclipboard":
-            templateText = '{{% comment %}} {0} {{% endcomment }}'.format(
+            templateText = '{{% comment %}} {0} {{% endcomment %}}'.format(
                 QApplication.clipboard().text().strip())
         elif tag == "multilinecommentfile":
             filename = E5FileDialog.getOpenFileName(
@@ -1393,7 +1393,7 @@
                     comment = f.read()
                     f.close()
                     templateText = (
-                        '{{% comment %}} {0} {{% endcomment }}'.format(
+                        '{{% comment %}} {0} {{% endcomment %}}'.format(
                             comment))
                 except (IOError, OSError) as err:
                     E5MessageBox.critical(

eric ide

mercurial