Sat, 01 Jun 2019 10:47:58 +0300
fixed BFC INVERTNEXT being interpreted as a header command
header.py | file | annotate | diff | comparison | revisions |
--- a/header.py Sat Jun 01 10:47:27 2019 +0300 +++ b/header.py Sat Jun 01 10:47:58 2019 +0300 @@ -43,7 +43,14 @@ linetypes.ConditionalLine, ] +def is_invertnext(entry): + return isinstance(entry, linetypes.MetaCommand) \ + and entry.text == "BFC INVERTNEXT" + def is_suitable_header_object(entry): + if is_invertnext(entry): + # BFC INVERTNEXT is not a header command anymore. + return False return not any( isinstance(entry, linetype) for linetype in [