Changeset 182:c9a7ab87e0d4


Ignore:
Timestamp:
04/06/11 14:38:26 (12 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Rebase:
63313661376239343239343638623562613135353530346462316433313535663464616365646631
Message:

Text: Actually unwrap in unwrapped

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/widgets/text.py

    r136 r182  
    5959
    6060    def _wrap(self):
    61         unwrapped = self.text.split('\n\n')
     61        unwrapped = [para.replace('\n', ' ')
     62                     for para in self.text.split('\n\n')]
    6263        text = []
    6364        for paragraph in unwrapped:
    64             paragraph = paragraph.replace('\n', ' ')
    6565            words = paragraph.split(' ')
    6666            nwords = len(words)
Note: See TracChangeset for help on using the changeset viewer.