41 linetypes.Triangle, |
41 linetypes.Triangle, |
42 linetypes.Quadrilateral, |
42 linetypes.Quadrilateral, |
43 linetypes.ConditionalLine, |
43 linetypes.ConditionalLine, |
44 ] |
44 ] |
45 |
45 |
|
46 def is_invertnext(entry): |
|
47 return isinstance(entry, linetypes.MetaCommand) \ |
|
48 and entry.text == "BFC INVERTNEXT" |
|
49 |
46 def is_suitable_header_object(entry): |
50 def is_suitable_header_object(entry): |
|
51 if is_invertnext(entry): |
|
52 # BFC INVERTNEXT is not a header command anymore. |
|
53 return False |
47 return not any( |
54 return not any( |
48 isinstance(entry, linetype) |
55 isinstance(entry, linetype) |
49 for linetype in [ |
56 for linetype in [ |
50 *geometrical_types, |
57 *geometrical_types, |
51 linetypes.Comment, |
58 linetypes.Comment, |