File tree 1 file changed +6
-8
lines changed
src/poetry/console/commands
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ def handle(self) -> int | None:
267
267
required_by = reverse_deps (locked , locked_repo )
268
268
required_by_length = max (
269
269
required_by_length ,
270
- len ("via " + "," .join (required_by .keys ())),
270
+ len (" from " + "," .join (required_by .keys ())),
271
271
)
272
272
else :
273
273
name_length = max (name_length , current_length )
@@ -288,14 +288,12 @@ def handle(self) -> int | None:
288
288
289
289
write_version = name_length + version_length + 3 <= width
290
290
write_latest = name_length + version_length + latest_length + 3 <= width
291
- write_why = self .option ("why" ) and (
292
- name_length + version_length + latest_length + required_by_length + 3
293
- <= width
294
- )
295
- write_description = (
296
- name_length + version_length + latest_length + required_by_length + 24
297
- <= width
291
+
292
+ why_end_column = (
293
+ name_length + version_length + latest_length + required_by_length
298
294
)
295
+ write_why = self .option ("why" ) and (why_end_column + 3 ) <= width
296
+ write_description = (why_end_column + 24 ) <= width
299
297
300
298
for locked in locked_packages :
301
299
color = "cyan"
You can’t perform that action at this time.
0 commit comments