[Pharo-dev] StringMorph removing Text styling

Peter Uhnák i.uhnak at gmail.com
Wed Oct 18 05:40:49 EDT 2017


Hi,

I am not sure if this is a bug or a feature, but converting Text to
StringMorph clears some of the formating.

Compare:

|text|
text := 'hello' asText makeAllColor: Color red.

text asStringMorph openInWindow. "no color"
(StringMorph contents: text) openInWindow. "with color"

Bug? Feature?

Thanks,
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20171018/686b7bf0/attachment-0002.html>


More information about the Pharo-dev mailing list