Commit graph

14 commits

Author SHA1 Message Date
Richard Feldman
c0f18f1c52
Move RemoveSpaces into fmt, for use in tests 2022-05-06 14:37:22 -04:00
Richard Feldman
a8eff47f87
Use len_utf8 over hardcoded 1
This will compile to the same thing but makes the reason
for the addition more self-documenting.
2022-03-06 11:26:48 -05:00
Richard Feldman
49fcd03941
Test trailing newline logic 2022-03-06 11:12:43 -05:00
Richard Feldman
8f6f20b57d
Avoid reallocation when ensuring trailing newline 2022-03-06 11:12:43 -05:00
Philippe Vinchon
813845e7d1 Trim end and add empty line for POSIX 2022-03-05 22:31:57 +00:00
Philippe Vinchon
b9365d06e3 Allow multi string in RePL 2022-03-03 21:15:01 +00:00
Richard Feldman
270374044f
Make Buf derive Debug 2022-01-30 20:40:50 -05:00
Joshua Warner
48c207bb06 Remove trailing whitespace from the output of the formatter 2021-12-18 17:14:14 -08:00
Joshua Warner
e3f2f8d9a4 keep indent state in fmt Buf 2021-12-04 18:26:32 -08:00
Joshua Warner
24f7692a73 Implement [more] app header formatting
Also, refactor out a utility method to format a Collection. This method can currently
replace some of the formatting done in module headers - but the goal is eventually
to be able to replace the code in fmt_list as well, such that there is 'one true way'
to format collections.
2021-11-23 12:19:43 -08:00
Richard Feldman
a7518a675a Clean up some clippy warnings 2021-05-23 20:28:23 -04:00
Anton-4
b085469602 Replaced large_enum_variant explanation with link to issue #800 2020-12-14 16:09:16 +01:00
Folkert
672b67d527 initial version of annotation formatting 2020-07-09 17:41:21 +02:00
Richard Feldman
5a129a506a Move fmt 2020-03-06 18:24:37 -05:00