git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8446
6f19259b-4bc3-4df7-8a09-
765794883524
// It forces a line break that ends this row.\r
//\r
Index++;\r
+ LineBreak = TRUE;\r
break;\r
}\r
\r
Index = Index1 + 1;\r
break;\r
}\r
+ //\r
+ // If don't find a line break opportunity from EndIndex to StartIndex,\r
+ // then jump out.\r
+ //\r
+ if (Index1 == RowInfo[RowIndex].StartIndex)\r
+ break;\r
}\r
}\r
//\r
Index++;\r
RowIndex++;\r
\r
- if (Flags & EFI_HII_IGNORE_LINE_BREAK) {\r
+ if (!LineBreak) {\r
//\r
- // If setting IGNORE_LINE_BREAK attribute, only render one line to image\r
+ // If there is not a mandatory line break or line break opportunity, only render one line to image\r
//\r
break;\r
}\r