Manuscript (Fall [Issue]22688) BlueInk (Code formatting) - Code formatting is ignoring #maxLineLength

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Manuscript (Fall [Issue]22688) BlueInk (Code formatting) - Code formatting is ignoring #maxLineLength

Pharo Issue Tracker
Manuscript Notification
avatar
Bug in Project:  BlueInk (Code formatting): Misc  •  You are subscribed to this case
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 Priority: 3 – Must Fix Status Status: Work Needed
Assigned To Assigned to: Marcus Denker Milestone Milestone: Pharo7.0

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker