question about the textwrap module
Tribulations at Paralleles.invalid
Mon Oct 27 23:50:08 CET 2008
Recently, I have tried to improve the look of the printed text in command
line. For this, I was compelled to remove redundant spaces in strings,
because in my scripts, often the strings are spreading on several lines.
For example, "aaa bbb" had to be transformed in "aaa bbb".
I have coded some simple functions to do that.
Today, by examining Python documentation, I have found an interesting
But, I haven't found any way to do my redundant space deletion with this
module? Am I right?
python -c "print ''.join([chr(154 - ord(c)) for c in '*9(9&(18%.9&1+,\'Z
"When a distinguished but elderly scientist states that something is
possible, he is almost certainly right. When he states that something is
impossible, he is very probably wrong." (first law of AC Clarke)
More information about the Python-list