fmt: formatting

This commit is contained in:
silver 2024-10-05 12:41:25 +01:00
parent 1fcfc78c6b
commit 86efe11f83
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D

View file

@ -61,11 +61,11 @@
if x < y
then y
else x;
# get teh max length of a list of strings
max_len = records: lib.lists.foldr (a: b: (max a b)) 0 (lib.lists.forEach records (record: lib.strings.stringLength record.record));
# now that we can get teh max lenth of a list of strings
# Now that we can get teh max lenth of a list of strings
# we can pad it out to the max len +1
# this is so that teh generated file is easier for a human to read
format_records = records: let