From: Svjatoslav Agejenko Date: Tue, 12 Jul 2016 13:00:44 +0000 (+0300) Subject: fixed compilation errors X-Git-Tag: meviz-1.0~7 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;ds=sidebyside;h=0c8606b2b2bee4d93f383653c283da116ad7fdee;p=meviz.git fixed compilation errors --- diff --git a/meviz.iml b/meviz.iml index 20eab94..8cdc9f9 100644 --- a/meviz.iml +++ b/meviz.iml @@ -6,7 +6,6 @@ - diff --git a/src/main/java/eu/svjatoslav/meviz/textsplitter/Main.java b/src/main/java/eu/svjatoslav/meviz/textsplitter/Main.java index 5b0e3c9..aaaecde 100755 --- a/src/main/java/eu/svjatoslav/meviz/textsplitter/Main.java +++ b/src/main/java/eu/svjatoslav/meviz/textsplitter/Main.java @@ -102,7 +102,7 @@ public class Main implements Module { pattern)) bufferedWriter.write("\n"); - final String character = cuttableString.cutLeft(1); + final String character = cuttableString.trimLeft(1); bufferedWriter.append(character); } diff --git a/src/main/java/eu/svjatoslav/meviz/texttruncate/Main.java b/src/main/java/eu/svjatoslav/meviz/texttruncate/Main.java index 11e1098..4dfd1af 100755 --- a/src/main/java/eu/svjatoslav/meviz/texttruncate/Main.java +++ b/src/main/java/eu/svjatoslav/meviz/texttruncate/Main.java @@ -106,7 +106,7 @@ public class Main implements Module { final String2 cuttableString = new String2(readLine); - bufferedWriter.write(cuttableString.cutLeft(targetLineLength) + bufferedWriter.write(cuttableString.trimLeft(targetLineLength) + "\n"); int splittedLinesCount = 0; @@ -117,7 +117,7 @@ public class Main implements Module { break; bufferedWriter.write(splitLinePrefix - + cuttableString.cutLeft(targetLineLength + + cuttableString.trimLeft(targetLineLength - splitLinePrefix.length()) + "\n"); } }