dearimgui / dear_bindings

C header (and language binding metadata) generator for Dear ImGui
MIT License
221 stars 12 forks source link

Output text alignment #5

Closed ocornut closed 1 year ago

ocornut commented 2 years ago

I'm splitting this away from #1 so we can track smaller chunks.

Output alignment

With those three the final output will become positively very close to the original.

ShironekoBen commented 2 years ago

I've done a couple of those - attached comments are now aligned, and (I think?) trailing whitespace should all be gone now. Need to take a look at functions/enums, though.

ocornut commented 2 years ago

There are whitespace remaining in enums: image It's only an annoyance as our (and other people) editor config files would auto-trim so this would lead to unintended changes in sources

ShironekoBen commented 2 years ago

Ah, doh! That's blank lines trying to indent themselves.... ^-^; Should be fixed now!

ShironekoBen commented 2 years ago

85086f1 adds alignment for enum members, struct fields and function names - I think this is getting pretty close now in terms of neatening the whole thing up.

ShironekoBen commented 1 year ago

I'm going to close this for now, feel free to reopen if you spot anything else that is misaligned.