[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Beautifying the Beautifier

Hi everybody,

if I put the opening brace in the same line as e.g. "for", such as

for(i=0; i<10; i++) {

(which is recommended, by the way),
the beautifyer will format this like

for(i=0; i<10; i++) {

Does anybody have an idea where/how to improve this? (Or has done it
already?) The trick could be to just tell xwpe instead of "indent the
code in the loop N columns behind opening brace" to "... N columns
behind the first character in the line that contains the opening brace".

Ronald Holzloehner
Technische Universitaet Berlin
Institut fuer Theoretische Physik

Voice:  +49 30 314-24410, Fax: -21130

"Hey!  Who took the cork off my lunch??!" -- W. C. Fields