peokai has asked for the wisdom of the Perl Monks concerning the following question:
The current code I use to insert the text into the textview is:# ID DESCRITPION QTY PRICE 1 los LABOUR ON PARTS 1 760.00 2 sa STRIP 1 450.00 3 av ANOTHER VALUE HERE 1 2000.00
That is sort off what it currently looks like in the textview (I simply seperated the values with tabs), I need everything to be inserted with the same ammount of spaces between, like:$buffer_1->insert($buffer_1->get_end_iter(),"$linenum $kode\t$waarde\t\t\t\t$entry_qty\t\t\t\tR$entry_price\n");
Muhc like printf(%-33s....etc). Any help or tips would be greatly appreciated# ID DESCRITPION QTY PRICE 1 los LABOUR ON PARTS 1 760.00 2 sa STRIP 1 450.00 3 av ANOTHER VALUE HERE 1 2000.00
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Textview format, help please !
by moritz (Cardinal) on Jul 22, 2010 at 08:26 UTC | |
by peokai (Novice) on Jul 22, 2010 at 09:57 UTC | |
by Khen1950fx (Canon) on Jul 22, 2010 at 11:01 UTC | |
by peokai (Novice) on Jul 22, 2010 at 12:07 UTC | |
by roboticus (Chancellor) on Jul 22, 2010 at 16:13 UTC | |
by moritz (Cardinal) on Jul 22, 2010 at 11:37 UTC | |
|
Re: Textview format, help please !
by Utilitarian (Vicar) on Jul 22, 2010 at 10:31 UTC | |
|
Re: Textview format, help please !
by biohisham (Priest) on Jul 22, 2010 at 16:57 UTC | |
|
Re: Textview format, help please !
by Generoso (Prior) on Jul 22, 2010 at 17:21 UTC | |
|
Re: Textview format, help please !
by peokai (Novice) on Jul 26, 2010 at 08:23 UTC |