[Tutor] Underlining?
James.Rocks@equant.com
James.Rocks@equant.com
Mon, 7 Oct 2002 11:36:36 +0100
Hi,
I'm trying to create a report and auto-underline some of the stuff i.e. to
create a line of "equal signs" the same length as the server name. This is
how I'm trying to do it:
import string
sServer = "SERVER 1"
string.translate(string.ljust("", len(sServer)), "=", " ")
It fails (naturally) on the basis that I need s 256 character string for
translation which is just a bit excessive for my needs :-)
Does anyone know of a more appropriate method or function for this
Cheers
James
James C. Rocks
Equant
Archway House
Canary Wharf
London E14 9SZ