<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font face="Georgia">Well, that drops styling altogether if it is
not exactly right. You could try to patch up the runs with:<br>
</font></p>
<p><font face="Georgia">aRunArray size > aString size ifTrue:
[aRunArray := aRunArray copy from: 1 to aString size].</font><br>
</p>
<p><font face="Georgia">aRunArray size < aString size ifTrue:
[aRunArray </font><font face="Georgia"> addLast: {} times: </font><font
face="Georgia"><font face="Georgia">aString size - </font></font><font
face="Georgia"><font face="Georgia">aRunArray size</font>].</font><br>
</p>
<br>
<div class="moz-cite-prefix">On 7/5/18 2:32 PM, K K Subbu wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1d42de5a-bec3-3e3f-76c2-fc2358254744@gmail.com">On
Thursday 05 July 2018 10:09 PM, Bob Arning wrote:
<br>
<blockquote type="cite">A useful step would be to check this:
<br>
<br>
(Text allInstances select: [ :e | e size ~= e runs size])
explore
<br>
<br>
and see if it finds anything. If people did it periodically
(like before and after loading new code from somewhere) we might
know if/how these anomalies might be created.
<br>
<br>
</blockquote>
Text drops bad runs silently in:
<br>
<br>
setString: aString setRunsChecking: aRunArray
<br>
...
<br>
aRunArray size = aString size ifFalse: [^ aString asText].
<br>
runs := aRunArray
<br>
<br>
This method is called from
PositionableStream>>#nextChunkText but not from
#nextChunkTextFromStream: methods of converter used by
MultiByteFileStream.
<br>
<br>
Should these methods be changed to check runs? or should we catch
the error in MultiByteStream>>#nextChunkText post
conversion?
<br>
<br>
Regards .. Subbu
<br>
<br>
</blockquote>
<br>
</body>
</html>