It would be nice if the package can adjust the broken lines a bit to work in some programming languages, especially automatically indenting it correctly.
So for example take this Python example:
if True:
str = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa very long variable'
This package converts it to:
if True:
str = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa very long
variable'
This has two issues:
it causes the script to break, because you can not break a line in Phyton in this way. YOu have to use a \ to indicate that the command is going on on the next line.
it does not intend the code correctly
So in this example this would be correct:
if True:
str = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa very long\
variable'
Possibly even:
if True:
str = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa very long\
variable'
In other languages especially this example would possibly be more difficult as you may not break a string on multiple lines. In some languages you have to end the string and concatenate it with another string on the next line.
For what it's worth this is even a good idea in Phyton, because otherwise you would include spaces when you intend it like I said. So basically the best way would be this one:
if True:
str = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa very' + \
' long variable'
Especially pay attention to the thing that you may not omit spaces if you're breaking strings, because this would not be suitable in most cases.
It would be nice if the package can adjust the broken lines a bit to work in some programming languages, especially automatically indenting it correctly.
So for example take this Python example:
This package converts it to:
This has two issues:
\
to indicate that the command is going on on the next line.So in this example this would be correct:
Possibly even:
In other languages especially this example would possibly be more difficult as you may not break a string on multiple lines. In some languages you have to end the string and concatenate it with another string on the next line.
For what it's worth this is even a good idea in Phyton, because otherwise you would include spaces when you intend it like I said. So basically the best way would be this one:
Especially pay attention to the thing that you may not omit spaces if you're breaking strings, because this would not be suitable in most cases.