[ANN] Gutenberg: a pretty printer for Smalltalk

Damien Pollet damien.pollet at gmail.com
Mon Jul 17 10:06:11 UTC 2006


On 7/17/06, Damien Cassou <damien.cassou at laposte.net> wrote:
>  Here is an example of an automatic formatting:

It seems you're not using gutenberg... here is how it formats your code:
renderCategoriesOn: html
    (html fieldSet) legend: ''Choose one or more categories'';
        with: [
                html
                    unorderedList: [
                        self allCategories
                            do: [:category |
                                html
                                    listItem: [
                                        (html checkbox)
                                                value: (self

belongsToCategory: category);
                                            onTrue: [
                                                    self
                                                        addCategory: category.]
                                                onFalse: [
                                                    self

removeCategory: category.];
                                            with: [
                                                    html
                                                        text: category
                                                            asString.].].]
                            separatedBy: [html break.].].].

quite long... makes me doubt if that algorithm is of any use for
smalltalk code :/

-- 
 Damien Pollet
 type less, do more



More information about the Squeak-dev mailing list