mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-23 19:31:30 +00:00
Cache line separator
This commit is contained in:
parent
97bbeadc6a
commit
09331780b3
1 changed files with 2 additions and 1 deletions
|
@ -142,9 +142,10 @@ public class LogActivity extends SyncthingActivity {
|
||||||
new InputStreamReader(process.getInputStream()), 8192);
|
new InputStreamReader(process.getInputStream()), 8192);
|
||||||
StringBuilder log = new StringBuilder();
|
StringBuilder log = new StringBuilder();
|
||||||
String line = "";
|
String line = "";
|
||||||
|
String sep = System.getProperty("line.separator");
|
||||||
while ((line = bufferedReader.readLine()) != null) {
|
while ((line = bufferedReader.readLine()) != null) {
|
||||||
log.append(line);
|
log.append(line);
|
||||||
log.append(System.getProperty("line.separator"));
|
log.append(sep);
|
||||||
}
|
}
|
||||||
return log.toString();
|
return log.toString();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|
Loading…
Reference in a new issue