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
if ((Line.count(u'"', 0, CommentPos) - Line.count(u'\\"', 0, CommentPos)) & 1) == 1:\r
CommentPos = Line.find (Comment, CommentPos + 1)\r
else:\r
- return Line[:CommentPos]\r
- return Line\r
+ return Line[:CommentPos].strip()\r
+ return Line.strip()\r
\r
\r
#\r