Bladeren bron

[2.0.x] Autobuild formatting (#14857)

Bob Kuhn 5 jaren geleden
bovenliggende
commit
5873b0b032
1 gewijzigde bestanden met toevoegingen van 5 en 2 verwijderingen
  1. 5
    2
      buildroot/share/atom/auto_build.py

+ 5
- 2
buildroot/share/atom/auto_build.py Bestand weergeven

660
       platformio_highlights = [
660
       platformio_highlights = [
661
               ['Environment', 0, 'highlight_blue'],
661
               ['Environment', 0, 'highlight_blue'],
662
               ['[SKIP]', 1, 'warning'],
662
               ['[SKIP]', 1, 'warning'],
663
+              ['[IGNORED]', 1, 'warning'],
663
               ['[ERROR]', 1, 'error'],
664
               ['[ERROR]', 1, 'error'],
665
+              ['[FAILED]', 1, 'error'],
664
               ['[SUCCESS]', 1, 'highlight_green']
666
               ['[SUCCESS]', 1, 'highlight_green']
665
       ]
667
       ]
666
 
668
 
698
               found_right = text.find(']', found + 1)
700
               found_right = text.find(']', found + 1)
699
               write_to_screen_queue(text[               : found + 1   ])
701
               write_to_screen_queue(text[               : found + 1   ])
700
               write_to_screen_queue(text[found + 1      : found_right ], highlight[2])
702
               write_to_screen_queue(text[found + 1      : found_right ], highlight[2])
701
-              write_to_screen_queue(text[found_right :                ] + '\n')
703
+              write_to_screen_queue(text[found_right :                ] + '\n' + '\n')
702
             break
704
             break
703
         if did_something == False:
705
         if did_something == False:
704
           r_loc = text.find('\r') + 1
706
           r_loc = text.find('\r') + 1
705
           if r_loc > 0 and r_loc < len(text):  # need to split this line
707
           if r_loc > 0 and r_loc < len(text):  # need to split this line
706
             text = text.split('\r')
708
             text = text.split('\r')
707
             for line in text:
709
             for line in text:
708
-              write_to_screen_queue(line + '\n')
710
+              if line != "":
711
+                write_to_screen_queue(line + '\n')
709
           else:
712
           else:
710
             write_to_screen_queue(text + '\n')
713
             write_to_screen_queue(text + '\n')
711
       # end - write_to_screen_with_replace
714
       # end - write_to_screen_with_replace

Laden…
Annuleren
Opslaan