From 8da37c1db788a939b314a57a13d395161c03d6df Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 5 Jan 2020 23:23:44 +0200 Subject: [PATCH] trim comments coming from hledger-web --- .../java/net/ktnx/mobileledger/json/v1_14/ParsedPosting.java | 2 +- .../java/net/ktnx/mobileledger/json/v1_15/ParsedPosting.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5