# HG changeset patch # User Teemu Piippo # Date 1559375278 -10800 # Node ID ed6d39c59e562b718f415a46878d6e2bb1f106c7 # Parent 388df1fa18a2938e85cd51d34a89095deca6f268 fixed BFC INVERTNEXT being interpreted as a header command diff -r 388df1fa18a2 -r ed6d39c59e56 header.py --- 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 [