JesseKPhillips / USA-Constitution

A history of edits to the US Constitution as it has been amended. Written in markdown to match original formatting.
2.15k stars 105 forks source link

Normalize 80 char hard wrap, fix line encoding problems and try to prevent them via .editorconfig #16

Closed emiliovesprini closed 5 years ago

emiliovesprini commented 5 years ago

Some files were hard wrapped to 80 chars, one was not and another one was mixed. When i tried to use

    fmt -80 file > file

to normalize the hard wrap I found some inconsistencies between Unix and Windows style line endings, which I fixed. I also introduced an .editorconfig file to try to prevent this in the future.

JesseKPhillips commented 5 years ago

Thanks I'm doing a history rewrite to address some documenting bugs. I'll look at incorporating this into the beginning.

JesseKPhillips commented 5 years ago

I've added the config and resaved all the files. I didn't use fmt, I ended up with an empty file, but I did use vim to wrap everything early in the history.

emiliovesprini commented 5 years ago

Great! Yeah I also think heavy history editing is best for this, to keep the commit log nice and clean. Don't really know why fmt leads to an empty file. Good luck