From b2e297da77f1baf891443881de9332491e55a029 Mon Sep 17 00:00:00 2001 From: William O'Mullane Date: Sat, 23 Mar 2024 15:36:11 -0300 Subject: [PATCH] indent in rst --- milestones/celeb.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/milestones/celeb.py b/milestones/celeb.py index fe71efb..474c281 100644 --- a/milestones/celeb.py +++ b/milestones/celeb.py @@ -303,10 +303,6 @@ def generate_doc(args, milestones): f"`{sha[:8]} `_, " f"dated {timestamp.strftime('%Y-%m-%d')}." ) - p.write_line( - f"This corresponds to the status recorded in the project " - f"controls system for {p6_date.strftime('%B %Y')}." - ) compline = "" if comp_milestones: if months > 0: @@ -320,7 +316,10 @@ def generate_doc(args, milestones): yr = int(yr) + 1 comp_ym = [yr, calendar.month_name[mo]] compline = f" This compares to {comp_ym[1]} {comp_ym[0]}." - p.write_line(f"{compline}") + p.write_line( + f"This corresponds to the status recorded in the project " + f"controls system for {p6_date.strftime('%B %Y')}. {compline}" + ) with doc.section("Top milestones") as my_section: top_milestones = [ms for ms in milestones if ms.celebrate == "Top"]