|
It is not the code formatter that ignores the maxLineLength. It is the RubSmalltalkCodeMode, that initializes the formatter with window size dependent maxLineLength:
formatMethodCode | source tree formatted | source := self textArea text asString. tree := RBParser parseMethod: source onError: [ :msg :pos | ^ self ]. formatted := tree formattedCodeWithMaxLineLength: self maxFormatterLineLength. formatted = source ifTrue: [ ^ self ]. self textArea updateTextWith: formatted
the maxFormatterLineLength computes the maxLineLength, depending on the textarea bounds.
|
|
|
Priority: 3 – Must Fix
|
|
Status: Work Needed
|
|
Assigned to: Marcus Denker
|
|
Milestone: Pharo7.0
|
Go to Case
|
|