Commit 4a8487c4d805a821a9a65a9dbc5c99ad00ee5b22
1 parent
af51eb5e
--no commit message
Showing
1 changed file
with
2 additions
and
2 deletions
src/com/upc/pbe/upcnews/Parser.java
@@ -38,11 +38,11 @@ public class Parser | @@ -38,11 +38,11 @@ public class Parser | ||
38 | lists.get(0).getLists().add(new List(-1)); | 38 | lists.get(0).getLists().add(new List(-1)); |
39 | String[] lines = file.split("\n"); | 39 | String[] lines = file.split("\n"); |
40 | Log.d(TAG, "" + lines.length); | 40 | Log.d(TAG, "" + lines.length); |
41 | - for(int i = 0; i < lines.length; i++) //la primera linea = null | 41 | + for(int i = 0; i < lines.length; i++) |
42 | { | 42 | { |
43 | if(lines[i].endsWith("\\")) | 43 | if(lines[i].endsWith("\\")) |
44 | { | 44 | { |
45 | - lines[i] = lines[i].substring(0, lines[i].indexOf("\\")) + lines[++i]; | 45 | + lines[i] = lines[i].substring(0, lines[i].indexOf("\\")-1) + lines[++i]; |
46 | } | 46 | } |
47 | try | 47 | try |
48 | { | 48 | { |