Open erezfz opened 9 years ago
I've found that its not related to the editor; the "break_chained_methods" is not functioning
Please look at the output here: https://github.com/mpelikan/js-beautify/blob/master/test/template/node-javascript.mustache#L580
break_chained_methods
is used to force newlines between chained methods, not to prevent line breaks between chained method. Sorry, this correct behavior.
Please comment if you'd like this reopened.
Returning to the headline of the issue- can you add option to disable/ enable breaklines on chained methods?
We've added to the list of requested enhancements. There are a number higher priority issues that we'll be working on first. Would you be will contribute this addition to the project?
yes
Hello, in the online editor at http://jsbeautifier.org/, using chrome latest version (44.0.2403.155 m) setting option - "Break lines on chained methods" =false , is not functioning. Beautify breaks method channing.
Settings: "Break lines on chained methods" =false "wrap lines near 40 characters"
sample code:
result after beautification:
Expected result after beautification:
is it a source-problem in the online-editor or the jsbeautify code?