Mercurial Hosting > luan
diff src/luan/LuanSource.java @ 51:28dfd91a816c
various small issues
git-svn-id: https://luan-java.googlecode.com/svn/trunk@52 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 28 Dec 2012 20:43:06 +0000 |
parents | 64ecb7a3aad7 |
children | 54a61d1dc070 |
line wrap: on
line diff
--- a/src/luan/LuanSource.java Fri Dec 28 19:48:43 2012 +0000 +++ b/src/luan/LuanSource.java Fri Dec 28 20:43:06 2012 +0000 @@ -20,6 +20,9 @@ throw new NullPointerException("source is null"); this.source = source; this.start = start; + while( Character.isWhitespace(source.text.charAt(end-1)) ) { + end--; + } this.end = end; }