File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -459,9 +459,11 @@ def is_source(self):
459459 return False
460460
461461 ft = self .filetype_file .lower ()
462- pt = self .filetype_pygment
462+ pt = self .filetype_pygment . lower ()
463463
464- if not 'xml' in ft and (pt or self .is_script is True ):
464+ if 'xml' not in ft and \
465+ ('xml' not in pt or self .location .endswith ('pom.xml' )) and \
466+ (pt or self .is_script is True ):
465467 return True
466468 else :
467469 return False
Original file line number Diff line number Diff line change @@ -877,7 +877,7 @@ def test_media_image_svg(self):
877877 test_file = self .get_test_loc ('contenttype/media/drawing.svg' )
878878 assert not is_binary (test_file )
879879 assert is_media (test_file )
880- assert is_media (test_file )
880+ assert not is_source (test_file )
881881
882882 def test_media_image_tgg (self ):
883883 test_file = self .get_test_loc ('contenttype/media/Image1.tga' )
You can’t perform that action at this time.
0 commit comments