I'm looking to wrap a paragraph with a limit of 80 characters, however if there is a necessary break (break long words set to false) and the line total is now 71 for example, how do I add 9 characters worth of white space to fill it out to 80 characters, for each line that this occurs.
I'm looking to use either the fill function of textwrapper rather than wrap, or anything that does it similarly. (ie. no lists)
Just postprocess the result:
for line in textwrap.wrap(some_text, 80, break_long_words=False):
yield "%-80s" % (line)
Obviously if you have a lot of this to do you might want to create your own TextWrapper
instance, but I suspect you already are familiar with the textwrap documentation.