NewStatement = ""\r
for Line in LineList:\r
# ignore blank comment\r
- if not Line.replace("#", '').strip() and SectionName != 'Defines':\r
+ if not Line.replace("#", '').strip() and SectionName not in ('Defines', 'Hob', 'Event', 'BootMode'):\r
continue\r
# add two space before non-comments line except the comments in Defines section\r
if Line.strip().startswith('#') and SectionName == 'Defines':\r