Personally I would expect that the second version should be fixed to discard formatting. We have the TextMorph for such cases.
-- Pavel 2017-10-18 11:40 GMT+02:00 Peter Uhnák <[email protected]>: > 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 >
