#201 JavaStyle needs to use \n all the time

minor bug

Please note that Jedit defaults to the system newline character if a special newline character is not specified in the jedit.props file. In this case, when a programmer with Windows runs the JavaStyle plugin over some code, the program will add a \r\n character to the end of each line. When the programmer re-loads the JavaStyle treated class, (s)he will find that a blank line is inserted between each line of code. Extremely annoying! The newline special characters must be removed with a text editor.
The simple workaround is to specify Unix \n newlines all the time. The trouble is that when each class is loaded, Jedit will default to \r\n. Programmers using JavaStyle (which is a great utility) should take the trouble to specify \n newlines in the jedit.props file. Simply comment out the props setting, so Jedit won’t default to the sytstem property.


  • Brill Pappin

    Brill Pappin - 2000-11-07

    I'm noticing that this also happens to me, when I copy and paste a block of code.

  • Slava Pestov

    Slava Pestov - 2000-11-17

    The bug regarding copy&paste has been fixed in 2.7pre1, and the newline issue is dealt with in bug #119890.

  • Slava Pestov

    Slava Pestov - 2000-11-17
    • status: open --> closed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks