bdragon300 / mongoengine-migrate

Migrations for MongoEngine inspired by Django
Apache License 2.0
17 stars 5 forks source link

Fix jinja2 python code word wrapper #5

Open bdragon300 opened 3 years ago

bdragon300 commented 3 years ago

symbol_wrap jinja2 filter now is used for word wrap python code during migration generation. But it wraps lines by commas, which could break python code, if such comma will be met in a string for instance.

It's needed to use something more suitable to word wraping for python code.