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

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


Thanks Phil!

I will play around with it for a bit and see what can I do.

Cheers,
Nico PM

On Wed, May 13, 2020 at 5:01 PM Phil B <pbpublist at gmail.com> wrote:

> Nicolas,
>
> It was by design.  Juan did that as a bit of a quick hack to provide color
> support for package/changeset diffs.  That's not to say that it couldn't be
> expanded to process all the attributes, just that the original
> implementation was to support the very simple use case of single color
> entries.
>
> Thanks,
> Phil
>
> On Wed, May 13, 2020, 3:46 PM Nicolás Papagna Maldonado via Cuis-dev <
> cuis-dev at lists.cuis.st> wrote:
>
>> 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
>> --
>> Cuis-dev mailing list
>> Cuis-dev at lists.cuis.st
>> https://lists.cuis.st/mailman/listinfo/cuis-dev
>>
>

-- 

Nicolás Papagna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200513/662337d1/attachment-0001.htm>


More information about the Cuis-dev mailing list