[Cuis-dev] Text attributes are not respected when rendered in a PluggableListMorph

Nicolás Papagna Maldonado nicolas.papagna at gmail.com
Wed May 13 12:46:13 PDT 2020


Hi all!

As part of Cuis Finder, I was trying to render a collection of formatted
Text instances in a PluggableListMorph.

I've noticed that the format applied to rendered items is based on the
first character of the text, not preserving the original formatting.

Notice that, when evaluating the following snippet, both text instances are
rendered fine in the inspector, but not when they are items in a list:
https://gist.github.com/npapagna/c1f1acf59ccc56b6fce1eda179aed5fc.

I was wondering if this by design.

Is there a way to render Text instances in a list, and have them rendered
respecting their formatting?

Thanks in advance!
Nico PM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200513/b10c35f9/attachment.htm>


More information about the Cuis-dev mailing list