File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed
crates/rust-project-goals-cli-llm/src Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,9 @@ pub struct UpdatesGoal {
109
109
110
110
/// Contents of a "Why this goal?" section in the tracking issue (empty string if not present)
111
111
pub why_this_goal : String ,
112
+
113
+ /// If this goal needs to be separated from its following sibling by an empty line.
114
+ pub needs_separator : bool ,
112
115
}
113
116
114
117
#[ derive( Serialize , Debug ) ]
Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ async fn prepare_goals(
140
140
comments,
141
141
tldr,
142
142
why_this_goal,
143
+ needs_separator : true , // updated after sorting
143
144
} ) ;
144
145
145
146
progress_bar:: inc_progress_bar ( ) ;
@@ -148,6 +149,11 @@ async fn prepare_goals(
148
149
// Updates are in a random order, sort them.
149
150
result. sort_by_cached_key ( |update| update. title . to_lowercase ( ) ) ;
150
151
152
+ // Mark the last entry as not needing a separator from its following sibling, it has none.
153
+ if let Some ( last) = result. last_mut ( ) {
154
+ last. needs_separator = false ;
155
+ }
156
+
151
157
Ok ( result)
152
158
}
153
159
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ The Rust project is currently working towards a [slate of {{goal_count}} project
14
14
<!-- markdown separator -->
15
15
16
16
{{> goal_comments }}
17
+
18
+ {{ #if needs_separator }}
19
+ <br >
20
+ {{ /if }}
17
21
{{ /each }}
18
22
19
23
## Goals looking for help
@@ -37,6 +41,9 @@ The Rust project is currently working towards a [slate of {{goal_count}} project
37
41
<!-- markdown separator -->
38
42
39
43
{{> goal_comments }}
44
+ {{ #if needs_separator }}
45
+ <br >
46
+ {{ /if }}
40
47
{{ /if }}
41
48
{{ /each }}
42
49
You can’t perform that action at this time.
0 commit comments