From 41c54e0008bef64217f5dab78d92dd462319a6d9 Mon Sep 17 00:00:00 2001 From: Keara Soloway Date: Mon, 26 Feb 2024 13:16:42 -0500 Subject: [PATCH] In file/spec.py, accommodate files containing multiple adjacent header sections --- python/file/spec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/file/spec.py b/python/file/spec.py index 04a8d3e..a32651f 100644 --- a/python/file/spec.py +++ b/python/file/spec.py @@ -228,7 +228,7 @@ def _indexscans(self): if fb is not None: fb.end() - if btype == 'F' or (btype == 'E' and not self.inheader): + if btype in ['F', 'E']: if btype == 'F': self.origfilename = sline[2:].strip() fb = Header(blockstart, blockline)