#289 AStyle beautifier adds an extra line after some comments

open
nobody
None
5
2004-03-09
2004-03-09
Anonymous
No

When I use some comments in some code, AStyleBeautifier
tends to put a new line every time I beautify the
buffer (on save in most cases or often about that time
- I being too lazy to fix it by hand usually :p ) A
code sample is attached and my settings grepped from my
.jedit/properties is below. Not sure about copyrights
on the code as it was a lab exercise from college and I
have run across this before but I do not have the code
for that that I remember nor do I recall the
circumstances for that. This is with the cvs snapshot
of jedit from about the time of the bug report.
Running OS X.3.2 and the latest apple java (1.4.x)
Here are the settings:

astyleplugin.breakClosingHeaderBlocksMode=False
astyleplugin.preprocessorIndent=False
astyleplugin.classIndent=False
astyleplugin.breakClosingHeaderBracketsMode=True
astyleplugin.breakElseIfsMode=False
astyleplugin.parenthesisPaddingMode=False
astyleplugin.breakBlocksMode=False
astyleplugin.emptyLineFill=False
astyleplugin.operatorPaddingMode=False
astyleplugin.forceTabs=False
astyleplugin.bracketFormatMode=Java / K&R
astyleplugin.caseIndent=True
astyleplugin.switchIndent=False
astyleplugin.bracketIndent=False
astyleplugin.maxInStatementIndentLength=40
astyleplugin.minConditionalIndentLength=4
astyleplugin.breakOneLineBlocksMode=True
astyleplugin.formatOnSave=True
astyleplugin.singleStatementsMode=True
astyleplugin.namespaceIndent=False
astyleplugin.blockIndent=False
astyleplugin.labelIndent=False

Discussion

  •  
    Attachments