summaryrefslogtreecommitdiffstats
path: root/android
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-01-11 14:18:20 +0200
committerTor Lillqvist <tlillqvist@suse.com>2012-01-11 14:27:44 +0200
commit3267d34fb9f57e8a4549b8fb9e8c362a64447cfc (patch)
tree941a48737a0aa7860225c083dfdd33ec029fc520 /android
parentadapted test case cell input to new date acceptance reality (diff)
downloadcore-3267d34fb9f57e8a4549b8fb9e8c362a64447cfc.tar.gz
core-3267d34fb9f57e8a4549b8fb9e8c362a64447cfc.zip
Need to trim trailing newline from the indirect command line string
Diffstat (limited to 'android')
-rw-r--r--android/Bootstrap/src/org/libreoffice/android/Bootstrap.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java b/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java
index 9cd9c3bcef82..f8331acf1573 100644
--- a/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java
+++ b/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java
@@ -120,7 +120,7 @@ public class Bootstrap extends NativeActivity
if (indirectFile != null) {
try {
// Somewhat stupid but short way to read a file into a string
- cmdLine = new Scanner(new File(indirectFile), "UTF-8").useDelimiter("\\A").next();
+ cmdLine = new Scanner(new File(indirectFile), "UTF-8").useDelimiter("\\A").next().trim();
}
catch (java.io.FileNotFoundException e) {
Log.i(TAG, String.format("Could not read %s: %s",indirectFile, e.toString()));