remram44 / pybabel-godot

Plugin for Babel to support Godot scene files (.tscn)
Other
14 stars 11 forks source link

Fix extra newlines and line number in multiline strings #13

Closed gilzoide closed 3 years ago

gilzoide commented 3 years ago

This prevents extra newline characters from being mistakenly inserted on multiline strings with more than 2 lines. This patch also return the opening line number for multiline strings instead of the closing one.

remram44 commented 3 years ago

Thanks @gilzoide!

I looked a bit deeper as I couldn't understand why the problem was happening, and found a different fix for the misbehaving regex. I will release a new version!

gilzoide commented 3 years ago

Glad to help! =D