diff --git a/.gitignore b/.gitignore index db595f1..f850340 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ push_to_vmachine* *.pyc *.pyo *.bak -__pycache__ \ No newline at end of file +__pycache__ +build \ No newline at end of file diff --git a/pym/calculate/lib/cl_template.py b/pym/calculate/lib/cl_template.py index 122bc89..f0536b8 100644 --- a/pym/calculate/lib/cl_template.py +++ b/pym/calculate/lib/cl_template.py @@ -6276,6 +6276,8 @@ gettext -d cl_template "$*" # создаем объект формата шаблона objTemplNew = self.formatFactory.createObject( formatTemplate, self.textTemplate) + if objHeadNew.comment: + objTemplNew._comment = objHeadNew.comment if not objTemplNew: self.setError( _("Wrong header parameter '{var}={val}' " @@ -6407,6 +6409,8 @@ gettext -d cl_template "$*" # создаем объект формата шаблона objTemplNew = self.formatFactory.createObject( formatTemplate, self.textTemplate) + if objHeadNew.comment: + objTemplNew._comment = objHeadNew.comment if not objTemplNew: self.setError( _("Wrong header parameter '{var}={val}' in "