From 2750ccbf26bf3153b0663a4ea9c8c08a82c0bf44 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Thu, 21 Sep 2017 21:23:34 +0200 Subject: [PATCH] Fix APSResult.toSpanned for SMBs. Adds a missing newline after "SMB: xxx" (cherry picked from commit d4de9ce) --- .../info/nightscout/androidaps/plugins/Loop/APSResult.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Loop/APSResult.java b/app/src/main/java/info/nightscout/androidaps/plugins/Loop/APSResult.java index 862f4687f4..82eef8d6cc 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Loop/APSResult.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Loop/APSResult.java @@ -60,9 +60,9 @@ public class APSResult { if (rate == 0 && duration == 0) ret = MainApp.sResources.getString(R.string.canceltemp); else ret = "" + MainApp.sResources.getString(R.string.rate) + ": " + DecimalFormatter.to2Decimal(rate) + " U/h " + - "(" + DecimalFormatter.to2Decimal(rate / configBuilder.getBaseBasalRate() * 100) + "%)
" + + "(" + DecimalFormatter.to2Decimal(rate / configBuilder.getBaseBasalRate() * 100) + "%)
" + "" + MainApp.sResources.getString(R.string.duration) + ": " + DecimalFormatter.to2Decimal(duration) + " min
" + - (smb != 0 ? ("" + "SMB" + ": " + DecimalFormatter.to2Decimal(smb) + " U") : "") + + (smb != 0 ? ("" + "SMB" + ": " + DecimalFormatter.to2Decimal(smb) + " U
") : "") + "" + MainApp.sResources.getString(R.string.reason) + ": " + reason.replace("<", "<").replace(">", ">"); return Html.fromHtml(ret); } else