I have this awful output
module 97 61 type 5 05 func 4 04 table 5 05 global 6 06 export 15 0f elem 8 08 code 33 21 Like having it nice with some kind of "stored tabs" like each column alings right. Some knows how could made. Maybe I have in Squeak but don't know. Edgar @morplenauta |
Hi Edgar,
I made a flexible utility for printing collections of objects to a stream in a Fixed-Width columnar format. They don't use tabs, but spaces, so they always work when viewed in a fixed-width font. It is available in the "MaBase" package on SqueakMap. To use, create an instance of MaFixedWidthReport, then use its 'building' methods to define the report, then send: myFixedWidthReport write: aCollection to: aStream Browse references to the class for an example. - Chris On Sat, May 26, 2018 at 6:45 AM, Edgar J. De Cleene <[hidden email]> wrote: > I have this awful output > > module 97 61 > type 5 05 > func 4 04 > table 5 05 > global 6 06 > export 15 0f > elem 8 08 > code 33 21 > > Like having it nice with some kind of "stored tabs" like each column alings > right. > > Some knows how could made. > Maybe I have in Squeak but don't know. > > > Edgar > @morplenauta > > > |
Very thanks, looking it On Sat, 26 May 2018 at 16:53 Chris Muller <[hidden email]> wrote: Hi Edgar, |
Hi Edgar, Squeak's text printing facilities do not support "stored tabs". You can use #padded:to:with: to fill up contents with spaces or other characters: 'foobar' padded: #right to: 25 with: $. '12' padded: #left to: 3 with: Character space. Then use a monospaced font (e.g. via "TextStyle defaultFixedFont"), too. :-) Best, Marcel
|
I could use this On 27/05/2018, 07:14, "Marcel Taeumel" <[hidden email]> wrote: Hi Edgar, |
Free forum by Nabble | Edit this page |