comparison game/Engine.java @ 80:3d34258ccc2c

Render empty lines correctly.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 03 Mar 2011 04:56:56 +0200
parents d17db72ac770
children 8932b1300ba1
comparison
equal deleted inserted replaced
79:83a79d1698c8 80:3d34258ccc2c
77 while (i < text.length()) 77 while (i < text.length())
78 { 78 {
79 int p = text.indexOf("\n", i); 79 int p = text.indexOf("\n", i);
80 boolean linefeed; 80 boolean linefeed;
81 String str; 81 String str;
82 if (p > i) 82 if (p >= i)
83 { 83 {
84 str = text.substring(i, p); 84 str = text.substring(i, p);
85 i = p + 1; 85 i = p + 1;
86 linefeed = true; 86 linefeed = true;
87 } 87 }