Peter Uhnak wrote
> TextModel accepts Text:

Thanks for the sanity check. I realized where I was going wrong. There must
be some sort of guard inside TextModel that no-ops if the string is the
same, so changing the text works:
    tm text: ((tm text allButLast) asText addAttribute: TextEmphasis
struckOut)
but only adding an attribute does nothing:
    tm text: (tm text asText addAttribute: TextEmphasis struckOut)

Since attributes are an allowed part of the content, seems like a bug, no?



-----
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/Spec-Text-Emphasis-tp4913688p4913792.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Reply via email to