From 3ec8f2f6f2bdb22cab83f02649aa8ac6e9b6d55c Mon Sep 17 00:00:00 2001 From: Kevin Kim Date: Wed, 18 Oct 2023 14:22:57 -0700 Subject: [PATCH] bug fix in wrapper generation --- synthDC/scripts/wrapperGen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synthDC/scripts/wrapperGen.py b/synthDC/scripts/wrapperGen.py index 3c36e2d63..e931d0a65 100755 --- a/synthDC/scripts/wrapperGen.py +++ b/synthDC/scripts/wrapperGen.py @@ -43,7 +43,7 @@ index=0 # string copy logic for l in lines: - if l.find("module") == 0: + if l.lstrip().find("module") == 0: lineModuleStart = index moduleName = l.split()[1] writeBuf = True @@ -51,7 +51,7 @@ for l in lines: continue if (writeBuf): buf += l - if l.find (");") == 0: + if l.lstrip().find (");") == 0: lineModuleEnd = index break index+=1