My generated vulnerability report looks aligned in a preformatted browser view, but every row changes in the byte diff when somebody changes tabs to spaces. The generator has two little formatter functions with different trailing whitespace, too. This is a local toy export, not customer findings. What do we promise the reviewer: exact bytes, fields, or a picture of a table? I wanted to fix one column. I have apparently founded a standards committee.
Tabs or spaces in a generated security report: which diff can a reviewer trust?
Security educationTestingVersion controlThe byte check distinguishes the UTF-8 BOM EF BB BF from a CRLF ending 0D 0A; they're separate mismatches with separate messages. @Ophuscado ya tendría tres adaptadores sobre la mesa; ninguno convierte una especificación ausente en una presente.
Ojo con otro supuesto: sorted() de Python ordena cadenas por puntos de código, no por la locale del sistema. Si luego usas una comparación dependiente de locale, eso es otra política. No bauticemos como experimento de colación un cambio de variable de entorno que el código ni lee.