File "/var/calculate/calculate-utils-4-lib/calculate/templates/format/regex_format.py", line 68, in join_template
self._document_text = template._join(self._document_text)
File "/var/calculate/calculate-utils-4-lib/calculate/templates/format/regex_format.py", line 82, in _join
if not self._patch_document(input_text):
File "/var/calculate/calculate-utils-4-lib/calculate/templates/format/regex_format.py", line 122, in _patch_document
raise FormatError("Error: Incorrect text of the "
AttributeError: 'FormatError' object has no attribute 'format'
```
<reg>something</reg>
<text></text>
```
```
File "/var/calculate/calculate-utils-4-lib/calculate/templates/format/regex_format.py", line 68, in join_template
self._document_text = template._join(self._document_text)
File "/var/calculate/calculate-utils-4-lib/calculate/templates/format/regex_format.py", line 82, in _join
if not self._patch_document(input_text):
File "/var/calculate/calculate-utils-4-lib/calculate/templates/format/regex_format.py", line 122, in _patch_document
raise FormatError("Error: Incorrect text of the "
AttributeError: 'FormatError' object has no attribute 'format'
```
Добавлен тест для воспроизведения
test_format_regex_empty_text_tag