Self hosted FLOSS fitness/workout, nutrition and weight tracker
Enclose reps and weight in paragraph for PDF
Roland Geider12b54f325f31
diff --git a/wger/manager/pdf.py b/wger/manager/pdf.pyindex 256fde8bc..527697671 100644--- a/wger/manager/pdf.py+++ b/wger/manager/pdf.py@@ -186,7 +186,8 @@ def workout_view(request, id, uidb64=None, token=None):exercise_markers[day['obj'].id].append(len(data) + 1)data.append([set_count,Paragraph(exercise['obj'].name, styleSheet["Small"]),- exercise['setting_text']])+ Paragraph(u'<para align="right">{0}</para>'+ .format(exercise['setting_text']), styleSheet["Small"])])set_count += 1data.append([''])@@ -204,7 +205,7 @@ def workout_view(request, id, uidb64=None, token=None):# Note: a padding of 3 seems to be the default('LEFTPADDING', (0, 0), (-1, -1), 2),- ('RIGHTPADDING', (0, 0), (-1, -1), 0),+ ('RIGHTPADDING', (0, 0), (-1, -1), 2),('TOPPADDING', (0, 0), (-1, -1), 3),('BOTTOMPADDING', (0, 0), (-1, -1), 2), ]@@ -257,8 +258,8 @@ def workout_view(request, id, uidb64=None, token=None):# Manually set the width of the columnsif len(t._argW) > 1:t._argW[0] = 0.6 * cm # Numbering- t._argW[1] = 9 * cm # Exercise- t._argW[2] = 4 * cm # Repetitions+ t._argW[1] = 8 * cm # Exercise+ t._argW[2] = 5 * cm # Repetitions# There is nothing to outputelse: