[Pharo-users] GLMFormatedPresentation>>format bug?
akgrant0710 at gmail.com
Sun May 15 17:58:16 EDT 2016
I'm currently porting my personal documentation system from Python /
Django to Pharo and am trying to display formatted text in a new pane in
the inspector. If I execute something like:
| text |
text := 'Hello World' asText.
text addAttribute: TextColor green from: 1 to: 6.
in a playground using "Do it and go", the text is displayed correctly
If I add a method in the object I want to inspect:
^ composite text
display: [self asText].
the formatting disappears.
I'm able to "fix" the problem by changing:
^ format ifNil: [ format := #asString ]
^ format ifNil: [ format := #asText ]
Is someone more knowledgable about Glamour able to confirm that this is
really a bug? If so, I'll submit a formal bug report on fogbugz. (If
there's a better solution, that would be great too).
More information about the Pharo-users