[GEM-dev] TextBase class

IOhannes m zmoelnig zmoelnig at iem.at
Mon Sep 5 13:38:35 CEST 2005


Georg Holzmann wrote:
> Hallo!
> 
> 
>>i meant what i always meant: that the text-objects shouldn't do the
>>line-breaking (where to break!) themselves; this should be done by the
>>[linebreak] object.
> 
> yes, and what is the output of the [linebreak] object? A long symbol, or a
> atom list ...

this an implementation detail of [linebreak] ;-) (and linebreak
shouldn't be part of Gem)
i think one single symbol is ok (because of the additional spaces that
would be introduced by having a list of symbols)


>>the changes that went in, is that the text-objects now can handle
>>multi-lined text.
> 
> and how?

it just converts the incoming list into a string and then breaks this
string at each occuring '\n';
it is pretty much your code, but it doesn't know anything about "maxchar".

mfg.a.dr
IOhannes


i'm off for spain now ;-)




More information about the GEM-dev mailing list