Skip to content

Conversation

eyn9xwy
Copy link

@eyn9xwy eyn9xwy commented Aug 20, 2025

This PR fixes an issue with the layout of list literals by using a new line for each imbricated list element.
image
#1421

@alexanderpann
Copy link
Member

Not sure what others think about it, but sometimes it feels like there are too many line breaks after this change and I am not sure if this helps with readability. Another option would be to only use breaks when the list literal contains a certain number of elements e.g. 3 or 5 or rather create a new concept for those matrix-style initialisations.

Bildschirmfoto 2025-08-28 um 17 29 18 Bildschirmfoto 2025-08-28 um 17 30 14

vs

Bildschirmfoto 2025-08-28 um 17 30 49

@eyn9xwy
Copy link
Author

eyn9xwy commented Aug 29, 2025

Fair point, but in our case the lists may look something like this:
image
There's no apparent structure, so I don't think a static rule like "line break after n elements" will do the trick.
I'll talk to my team about creating a new concept.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants