Mercurial Hosting > luan
changeset 608:d2e0855b3105
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 07 Dec 2015 16:04:01 -0700 |
parents | c5ad80f869da |
children | 24b05963ba62 |
files | core/src/luan/impl/ThemeParser.java |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/core/src/luan/impl/ThemeParser.java Mon Dec 07 15:08:42 2015 -0700 +++ b/core/src/luan/impl/ThemeParser.java Mon Dec 07 16:04:01 2015 -0700 @@ -325,8 +325,11 @@ int startSpaces = parser.currentIndex(); InlineSpaces(); String line1Spaces = parser.textFrom(startSpaces); - if( line1Spaces.startsWith(tagSpaces) ) - spaces += line1Spaces.substring(tagSpaces.length()); + if( line1Spaces.startsWith(tagSpaces) ) { + String newSpaces = spaces + line1Spaces.substring(tagSpaces.length()); + if( line1Spaces.startsWith(newSpaces) ) + spaces = newSpaces; + } } parser.failure(); // rollback }