Lines 2457-2463
Link Here
|
2457 |
// delete consumed white spaces |
2457 |
// delete consumed white spaces |
2458 |
hasWhitespaces = true; |
2458 |
hasWhitespaces = true; |
2459 |
currentTokenStartPosition = this.scanner.currentPosition; |
2459 |
currentTokenStartPosition = this.scanner.currentPosition; |
2460 |
addDeleteEdit(tokenStartPosition, whitespacesEndPosition); |
2460 |
if (this.formatter.preferences.comment_format_line_comment) { |
|
|
2461 |
addDeleteEdit(tokenStartPosition, whitespacesEndPosition); |
2462 |
} |
2461 |
} else { |
2463 |
} else { |
2462 |
if (lines == 0) { |
2464 |
if (lines == 0) { |
2463 |
hasWhitespaces = true; |
2465 |
hasWhitespaces = true; |
Lines 2731-2737
Link Here
|
2731 |
this.lastLineComment.indentation = commentIndentationLevel; |
2733 |
this.lastLineComment.indentation = commentIndentationLevel; |
2732 |
|
2734 |
|
2733 |
// Add pending space if necessary |
2735 |
// Add pending space if necessary |
2734 |
if (this.pendingSpace) { |
2736 |
if (this.formatter.preferences.comment_format_line_comment && this.pendingSpace) { |
2735 |
addInsertEdit(currentTokenStartPosition, " "); //$NON-NLS-1$ |
2737 |
addInsertEdit(currentTokenStartPosition, " "); //$NON-NLS-1$ |
2736 |
} |
2738 |
} |
2737 |
this.needSpace = false; |
2739 |
this.needSpace = false; |