Tweaking the paragraph filling code some more

- Legacy-Id: 346
This commit is contained in:
Henrik Levkowetz 2007-06-12 20:31:28 +00:00
parent 712cd8aa17
commit aa68d30e85

View file

@ -48,6 +48,7 @@ def para(words, pre):
#print "["+text+"]" #print "["+text+"]"
text = re.sub("[\t ]+", " ", text) text = re.sub("[\t ]+", " ", text)
text = text.strip("\n") text = text.strip("\n")
text = text.lstrip()
text = textwrap.fill(text) text = textwrap.fill(text)
return text return text