diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2020-10-14 22:49:08 +0300 |
---|---|---|
committer | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2020-10-16 14:53:02 +0300 |
commit | f0ab87bb43aeedff8671cd1ce722e258f175e2be (patch) | |
tree | b4546b4a7414914ad76d8832c3f95517c3ddfb17 /util | |
parent | 59359f67828926c192247f1b041a0438d904c6b6 (diff) |
pro2cmake: Ignore also initial comment
Change-Id: Id0b27c2a082f78c713e43c6ca846a4fff9ab7a8c
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'util')
-rw-r--r-- | util/cmake/qmake_parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cmake/qmake_parser.py b/util/cmake/qmake_parser.py index 73620f0890..357a529e5a 100644 --- a/util/cmake/qmake_parser.py +++ b/util/cmake/qmake_parser.py @@ -68,7 +68,7 @@ def fixup_comments(contents: str) -> str: # care of it as well, as if the commented line didn't exist in the # first place. - contents = re.sub(r"\n[ \t]*#[^\n]*?\n", "\n", contents, re.DOTALL) + contents = re.sub(r"(^|\n)[ \t]*#[^\n]*?\n", "\n", contents, re.DOTALL) return contents |