<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Not exactly "by design" but "by laziness". As Phil said, recently we
added color. Before we didn't even have that. Still, lists elements
are of uniform height. Supporting all the Text attributes would
requiring varying height elements. Implementing that is more work
than just color... Take a look at #draw:atRow:on:, and its history.<br>
<br>
Cheers,<br>
<br>
On 5/13/2020 5:07 PM, Nicolás Papagna Maldonado via Cuis-dev wrote:
<blockquote
cite="mid:CADGn7BPiURyAyN7Gth3O1EcDDRutaTxz=_aYVUQbLhOKCKefew@mail.gmail.com"
type="cite">
<div dir="ltr">Thanks Phil!
<div><br>
</div>
<div>I will play around with it for a bit and see what can I do.</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Nico PM</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, May 13, 2020 at 5:01
PM Phil B <<a moz-do-not-send="true"
href="mailto:pbpublist@gmail.com">pbpublist@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div dir="auto">
<div>Nicolas,</div>
<div dir="auto"><br>
</div>
<div dir="auto">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.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Thanks,</div>
<div dir="auto">Phil<br>
<br>
<div class="gmail_quote" dir="auto">
<div dir="ltr" class="gmail_attr">On Wed, May 13, 2020,
3:46 PM Nicolás Papagna Maldonado via Cuis-dev <<a
moz-do-not-send="true"
href="mailto:cuis-dev@lists.cuis.st" target="_blank">cuis-dev@lists.cuis.st</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin: 0px 0px
0px 0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div dir="ltr">
<div>Hi all!</div>
<div><br>
</div>
<div>As part of Cuis Finder, I was trying to render
a collection of formatted Text instances in a
PluggableListMorph.</div>
<div><br>
</div>
<div>I've noticed that the format applied to
rendered items is based on the first character of
the text, not preserving the original formatting.</div>
<div><br>
</div>
<div>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: <a moz-do-not-send="true"
href="https://gist.github.com/npapagna/c1f1acf59ccc56b6fce1eda179aed5fc"
rel="noreferrer" target="_blank">https://gist.github.com/npapagna/c1f1acf59ccc56b6fce1eda179aed5fc</a>.</div>
<div><br>
</div>
<div>I was wondering if this by design.</div>
<div><br>
</div>
<div>Is there a way to render Text instances in a
list, and have them rendered respecting their
formatting?</div>
<div><br>
</div>
<div>Thanks in advance!</div>
<div>Nico PM</div>
</div>
-- <br>
Cuis-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:Cuis-dev@lists.cuis.st"
rel="noreferrer" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a moz-do-not-send="true"
href="https://lists.cuis.st/mailman/listinfo/cuis-dev"
rel="noreferrer noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail_signature"><br>
Nicolás Papagna</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis-smalltalk.org">www.cuis-smalltalk.org</a>
<a class="moz-txt-link-freetext" href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a class="moz-txt-link-freetext" href="https://github.com/jvuletich">https://github.com/jvuletich</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/juan-vuletich-75611b3">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
@JuanVuletich</pre>
</body>
</html>