Skip to content

Commit

Permalink
Adjust places for line breaks in PDF report (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
KapJI authored Apr 22, 2021
1 parent e98e903 commit 52e68a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cgt_calc/resources/template.tex.j2
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@
\BLOCK{ endif }
allowable
\BLOCK{ if entry.rule_type.name == "BED_AND_BREAKFAST" }
cost on \VAR{ date_from_index(entry.bed_and_breakfast_date_index).strftime("%d %b %Y") }:
cost on \mbox{\VAR{ date_from_index(entry.bed_and_breakfast_date_index).strftime("%d %b %Y") }:}
\BLOCK{ else }
cost:
\BLOCK{ endif }
£\VAR{ "{:,}".format(round_decimal(entry.allowable_cost, 2)) },
\BLOCK{ if entry.gain > 0}
gain: £\VAR{ "{:,}".format(round_decimal(entry.gain, 2)) }.
\mbox{gain: £\VAR{ "{:,}".format(round_decimal(entry.gain, 2)) }.}
\BLOCK{ else }
loss: £\VAR{ "{:,}".format(round_decimal(-entry.gain, 2)) }.
\mbox{loss: £\VAR{ "{:,}".format(round_decimal(-entry.gain, 2)) }.}
\BLOCK{ endif }
\BLOCK{ else } % if is_aquisition
actual cost: £\VAR{ "{:,}".format(round_decimal(-entry.amount, 2)) }.
Expand Down

0 comments on commit 52e68a6

Please sign in to comment.