From: Damyan Ivanov Date: Sun, 5 Jan 2020 21:23:44 +0000 (+0200) Subject: trim comments coming from hledger-web X-Git-Tag: v0.12.0~102 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=8da37c1db788a939b314a57a13d395161c03d6df;p=mobile-ledger.git trim comments coming from hledger-web --- diff --git a/app/src/main/java/net/ktnx/mobileledger/json/v1_14/ParsedPosting.java b/app/src/main/java/net/ktnx/mobileledger/json/v1_14/ParsedPosting.java index a3667a23..a92900da 100644 --- a/app/src/main/java/net/ktnx/mobileledger/json/v1_14/ParsedPosting.java +++ b/app/src/main/java/net/ktnx/mobileledger/json/v1_14/ParsedPosting.java @@ -94,7 +94,7 @@ public class ParsedPosting { return pcomment; } public void setPcomment(String pcomment) { - this.pcomment = pcomment; + this.pcomment = (pcomment == null) ? null : pcomment.trim(); } public List> getPtags() { return ptags; diff --git a/app/src/main/java/net/ktnx/mobileledger/json/v1_15/ParsedPosting.java b/app/src/main/java/net/ktnx/mobileledger/json/v1_15/ParsedPosting.java index a0607512..fd10b9c5 100644 --- a/app/src/main/java/net/ktnx/mobileledger/json/v1_15/ParsedPosting.java +++ b/app/src/main/java/net/ktnx/mobileledger/json/v1_15/ParsedPosting.java @@ -94,7 +94,7 @@ public class ParsedPosting { return pcomment; } public void setPcomment(String pcomment) { - this.pcomment = pcomment; + this.pcomment = (pcomment == null) ? null : pcomment.trim(); } public List> getPtags() { return ptags;