Z80Format is a simple assembly code source formatter. It may convert the assembly code source to a ready Rasm code source. It's free to use.
You need a Golang environnement set up and compile it via the makefile command :
make
Golang specific :
go install github.com/jeromelesaux/z80format/cli/z80formatter@latest
You can use it like this
z80formatter -format myfile.asm > myformattedfile.asm
or
z80formatter < myfile.asm > myformatterfile.asm