mirror of https://github.com/acidanthera/audk.git
BaseTools: Fix a bug that UNI file can't have comment after #include "file.uni"
The 'include' regular expression cannot match spaces before or after this statement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu <yingke.d.liu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17680 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
09ae0f1113
commit
45265a8614
|
@ -293,8 +293,8 @@ class UniFileClassObject(object):
|
|||
if ((Line.count(u'"', 0, CommentPos) - Line.count(u'\\"', 0, CommentPos)) & 1) == 1:
|
||||
CommentPos = Line.find (Comment, CommentPos + 1)
|
||||
else:
|
||||
return Line[:CommentPos]
|
||||
return Line
|
||||
return Line[:CommentPos].strip()
|
||||
return Line.strip()
|
||||
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue