Closed moodymudskipper closed 3 years ago
related thoughts go to https://github.com/moodymudskipper/flow/issues/51
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.
I don't remember why it was hard to preserve formatting and why I don't do print neatly left aligned indented code.
Maybe it was because long lines have to be split not to mess everything up. e.g long strings, or calls with many args that are most likely on several lines in original code.
Whatever the reason it should be fixable, maybe some tools like styler or lintr can help.
I don't remember how I deal with long strings but I guess we could compact them for readability (end with "<... >" for instance) as an option if it's a common enough issue.