Skip to content

normalize whitespace in output across OCaml versions #91

@vogler

Description

@vogler

I ran into some differences in whitespace across OCaml versions when testing a ppx rewriter.
For example OCaml 4.02-4.05 places no space after a comma in tuples but adds some trailing space in other places where OCaml >= 4.06 does not.
See here: vogler/ppx_distr_guards@2c94051
I normalize the output with sed and only then compare.

It would be nicer if the output was the same across versions.
I assume the pretty-printing is done by OCaml itself, but maybe omp could normalize it afterwards?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions