From 4a8487c4d805a821a9a65a9dbc5c99ad00ee5b22 Mon Sep 17 00:00:00 2001 From: Equip de Desenvolupadors de PBE Date: Wed, 5 Dec 2012 15:26:24 +0000 Subject: [PATCH] --- src/com/upc/pbe/upcnews/Parser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/upc/pbe/upcnews/Parser.java b/src/com/upc/pbe/upcnews/Parser.java index 374e25f..49edd4c 100644 --- a/src/com/upc/pbe/upcnews/Parser.java +++ b/src/com/upc/pbe/upcnews/Parser.java @@ -38,11 +38,11 @@ public class Parser lists.get(0).getLists().add(new List(-1)); String[] lines = file.split("\n"); Log.d(TAG, "" + lines.length); - for(int i = 0; i < lines.length; i++) //la primera linea = null + for(int i = 0; i < lines.length; i++) { if(lines[i].endsWith("\\")) { - lines[i] = lines[i].substring(0, lines[i].indexOf("\\")) + lines[++i]; + lines[i] = lines[i].substring(0, lines[i].indexOf("\\")-1) + lines[++i]; } try { -- libgit2 0.22.2