浏览代码

tools/ldgen: Fix parsing of sections names on Windows

Roland Dobai 5 年之前
父节点
当前提交
3280f45259
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tools/ldgen/generation.py

+ 2 - 2
tools/ldgen/generation.py

@@ -609,8 +609,8 @@ class SectionsInfo(dict):
 
         archive_path = (Literal("In archive").suppress() +
                         White().suppress() +
-                        # trim the last character (:) from archive_path
-                        restOfLine.setResultsName("archive_path").setParseAction(lambda t: t[0][:-1]))
+                        # trim the colon and line ending characters from archive_path
+                        restOfLine.setResultsName("archive_path").setParseAction(lambda s, loc, toks: s.rstrip(":\n\r ")))
         parser = archive_path
 
         results = None