~raoul-snyman/openlp/pep440

« back to all changes in this revision

Viewing changes to openlp/core/lib/__init__.py

  • Committer: Tomas Groth
  • Date: 2018-07-07 06:45:39 UTC
  • mfrom: (2821.1.7 pycodestyle)
  • Revision ID: tomasgroth@yahoo.dk-20180707064539-5q0enwn43pbjou3v
Fix pep8 and pylint errors detected by new version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
415
415
                chords_on_prev_line = True
416
416
            # Matches a chord, a tail, a remainder and a line end. See expand_and_align_chords_in_line() for more info.
417
417
            new_line += re.sub(r'\[(.*?)\]([\u0080-\uFFFF,\w]*)'
418
 
                               '([\u0080-\uFFFF,\w,\s,\.,\,,\!,\?,\;,\:,\|,\",\',\-,\_]*)(\Z)?',
 
418
                               r'([\u0080-\uFFFF,\w,\s,\.,\,,\!,\?,\;,\:,\|,\",\',\-,\_]*)(\Z)?',
419
419
                               expand_and_align_chords_in_line, line)
420
420
            new_line += '</span>'
421
421
            expanded_text_lines.append(new_line)