Closed timvisher closed 6 years ago
M-x auto-fill-mode
?
@syohex fill
ing produces:
charnock = "stah oesuth aoesut haoesut haoesut haoseut haoseut
haosenut haosentu haosentu haoesutnh satoeuh santoeuh sanoetuh
saenotuh aeostnuh."
charnock = "stah oesuth aoesut haoesut haoesut haoseut haoseut haosenut haosentu haosentu haoesutnh satoeuh santoeuh sanoetuh saenotuh aeostnuh."
is different from
charnock = "stah oesuth aoesut haoesut haoesut haoseut haoseut haosenut
haosentu haosentu haoesutnh satoeuh santoeuh sanoetuh saenotuh
aeostnuh."
Your expected result has more spaces than original string.
@syohex Let's move the goalpost, then, shall we? :)
Hmm, it is necessary to parse string and its content and it is difficult to implement in Emacs Lisp.
Is there such converter or beautifier in JavaScript or AltJS ?
Not that i'm aware of. But i wouldn't count myself as particularly knowledgeable about such things.
I don't use coffee-mode anymore. :(
I think the right way to do this would be