- Timestamp:
- 11/02/10 18:33:51 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/formatter/EbnfFormatterVisitor.java
r31 r32 289 289 private void wrap() { 290 290 if ((config.isWrapAfterThreshold()) && (newLineOffsetCounter > config.getWrapThreshold())) { 291 newLine(); 292 if (ruleSpacingStack.size() > 1) 293 spaces(ruleSpacingStack.peek() + 1); 294 else 295 spaces(ruleSpacingStack.peek()); 291 char last = buf.toString().charAt(buf.toString().length()-1); 292 if (!((last == '(' || last == '[' || last == '{' ))) { 293 newLine(); 294 if (ruleSpacingStack.size() > 1) 295 spaces(ruleSpacingStack.peek() + 1); 296 else 297 spaces(ruleSpacingStack.peek()); 298 } 296 299 } 297 300 }
Note: See TracChangeset
for help on using the changeset viewer.