mirror of
https://gitlab.com/oeffi/oeffi.git
synced 2025-07-06 17:38:48 +00:00
OeffiMainActivity: Fix line concatenation when parsing messages.
This commit is contained in:
parent
10eb0e163d
commit
25eb33c551
1 changed files with 2 additions and 2 deletions
|
@ -589,13 +589,13 @@ public abstract class OeffiMainActivity extends OeffiActivity {
|
|||
final String key = m.group(1);
|
||||
final String value = m.group(2).trim();
|
||||
|
||||
message.putString(key, value + " ");
|
||||
message.putString(key, value);
|
||||
lastKey = key;
|
||||
} else if (lastKey != null) {
|
||||
if (line.isEmpty())
|
||||
line = "\n\n";
|
||||
|
||||
message.putString(lastKey, message.getString(lastKey) + line);
|
||||
message.putString(lastKey, message.getString(lastKey) + " " + line);
|
||||
} else {
|
||||
throw new IllegalStateException("line needs to match 'key: value': '" + line + "'");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue