Tweaking the paragraph filling code some more
- Legacy-Id: 346
This commit is contained in:
parent
712cd8aa17
commit
aa68d30e85
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue