Skip to content

Commit

Permalink
Support parsing of line wrapped INF File Paths (#156)
Browse files Browse the repository at this point in the history
Extends the current parser to properly parse INF File paths that wrap into a new line, specifically when parsing a module summary section.
  • Loading branch information
zurcher authored Apr 26, 2022
1 parent 420e44a commit f944ca5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions edk2toollib/uefi/edk2/parsers/buildreport_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ def Parse(self):
logging.debug("Parsing Mod: %s" % value)
self.Name = value
elif(key == "module inf path"):
while(".inf" not in value.lower()):
i += 1
value += self._RawContent[i].strip()
self.InfPath = value.replace("\\", "/")
elif(key == "file guid"):
self.Guid = value
Expand Down

0 comments on commit f944ca5

Please sign in to comment.