Routine for prefixing '>' before every line of a string

Sanjay skpatel20 at gmail.com
Thu Dec 14 07:03:58 EST 2006


Hi All,

Is somewhere a routine useful to convert a string to lines of maxsize,
each prefixed with a '>'. This is a typical requirement for 'keeping
existing text while replying to a post in a forum'.

It can be developed, but if something obvious is already there(I being
new to python might not be aware), than it would be great just to reuse
it!

thanks
sanjay




More information about the Python-list mailing list