Commits

Anonymous committed 4281c60

fixed bug #4: occurences that have hiphens are wrapped when they sould not

  • Participants
  • Parent commits 0b0c5f7

Comments (0)

Files changed (1)

                 # what we want for filenames, so the dirty hack is to 
                 # temporally replace hyphens with a char that a file cannot 
                 # contain, like "*"
-                lines = _strreplace(filestr, '-', '*')
-                lines = _textwrap(filestr, wrapwidth,
+                lines = _textwrap(_strreplace(filestr, '-', '*'),
+                                  wrapwidth,
                                   initial_indent='#: ',
                                   subsequent_indent='#: ',
                                   break_long_words=False)