I already had a similar problem and it is solved. Link https://jira.appcelerator.org/browse/APSTUD-3139
Now I'm facing the same problem in 3.1.x branch.
Please see the attached file.
Actualy the problem is the line
The only solution to fix this problem is to completely remove this line. Even the commenting with // or via /* */ section doesn't help.
Also adding space between < and tr solves the problem
echo '< tr'.$zebra.'>';