From 0c8606b2b2bee4d93f383653c283da116ad7fdee Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Tue, 12 Jul 2016 16:00:44 +0300 Subject: [PATCH] fixed compilation errors --- meviz.iml | 1 - src/main/java/eu/svjatoslav/meviz/textsplitter/Main.java | 2 +- src/main/java/eu/svjatoslav/meviz/texttruncate/Main.java | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) 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"); } } -- 2.20.1