Improved formatting of receipts

pull/190/head
M66B 5 years ago
parent 4bb185b14b
commit 1ef17f0a04

@ -3717,10 +3717,17 @@ public class FragmentCompose extends FragmentBase {
} else if ("receipt".equals(action)) { } else if ("receipt".equals(action)) {
data.draft.subject = context.getString(R.string.title_receipt_subject, subject); data.draft.subject = context.getString(R.string.title_receipt_subject, subject);
for (String text : Helper.getStrings(context, ref.language, R.string.title_receipt_text)) { String[] texts = Helper.getStrings(context, ref.language, R.string.title_receipt_text);
Element p = document.createElement("p"); for (int i = 0; i < texts.length; i++) {
p.text(text); if (i > 0)
document.body().appendChild(p); document.body()
.appendElement("br");
Element div = document.createElement("div");
div.text(texts[i]);
document.body()
.appendChild(div)
.appendElement("br");
} }
} else if ("participation".equals(action)) } else if ("participation".equals(action))
data.draft.subject = status + ": " + ref.subject; data.draft.subject = status + ": " + ref.subject;

Loading…
Cancel
Save