Commits

Luke Plant committed bf9e03a

Fixed long lines

Comments (0)

Files changed (1)

semanticeditor/utils.py

     names = {}
     for num, name in headings:
         if num > lastnum + 1:
-            raise IncorrectHeadings('Heading "%(name)s" is level H%(foundnum)d, but it should be level H%(rightnum)d or less'  % dict(name=name,foundnum=num,rightnum=lastnum+1))
+            raise IncorrectHeadings('Heading "%(name)s" is level H%(foundnum)d,'
+                                    ' but it should be level H%(rightnum)d or less' %
+                                    dict(name=name,foundnum=num,rightnum=lastnum+1))
         lastnum = num
         if name in names:
-            raise IncorrectHeadings('There are duplicate headings with the name "%s".' % name)
+            raise IncorrectHeadings('There are duplicate headings with the name'
+                                    ' "%s".' % name)
         names[name] = True
 
     return headings