GNOME Bugzilla – Bug 143827
option to insert a new-line at a given column
Last modified: 2012-10-26 08:50:02 UTC
This bug has been reported in the Debian BTS: http://bugs.debian.org/205908 "I would like an option to cut (== insert a new line) at a given columns and not only to wrap the lines."
This feature exists already in nedit 5.4. First you have to select wrap continous (in preferences), then when you 'save as...' there is a checkbox: 'add line break where wrapped' (there a confirmation window as it is irreversible). See http://zongo.be/pic/nedit_screenshot.png I don't know whether the it's the best place to check, but it could be implemented as plugin.
Created attachment 37114 [details] patch for the build system
Created attachment 37115 [details] and the plugin itself as a tarball This is a good start, and it would even be save to commit, but I'll tweak it some more. Mimetype specific line breaking can be added as well. For now, LaTeX line endings (\\) are honored as an example
Created attachment 37136 [details] improved plugin (tar.gz) Better line merging capabilities, taking trailing whitespace into account, and \r\n newline handling.
Kenneth P. Turvey added in Debian bug http://bugs.debian.org/329400 that it would be nice if the resulting wrapping could also handle things such as quotes for mails or Usenet posts (lines starting with "> " would be wrapped with the same prefix).
One generic solution to this bug is also to provide a plugin to filter data through a command, such as "par", as noted in bug 317112.
*** Bug 572860 has been marked as a duplicate of this bug. ***