Handle tabs in rendering of licenses (#9264)

This commit is contained in:
Jason Simmons 2017-04-06 13:11:06 -07:00 committed by GitHub
parent 470db7d96e
commit e04376895d

View File

@ -159,6 +159,11 @@ class LicenseEntryWithLineBreaks extends LicenseEntry {
currentLineIndent += 1;
state = _LicenseEntryWithLineBreaksParserState.beforeParagraph;
break;
case '\t':
lineStart = currentPosition + 1;
currentLineIndent += 8;
state = _LicenseEntryWithLineBreaksParserState.beforeParagraph;
break;
case '\n':
case '\f':
if (lines.isNotEmpty)