Add constants for default options in DiffXWriter.
Review Request #11728 — Created July 17, 2021 and submitted — Latest diff uploaded
These default options are used when writing a DiffX file. The options
were previously stored as hard-coded values in function definitions, but
this meant that other parts of the codebase couldn't refer to those
defaults.This adds
DEFAULT_ENCODING
andDEFAULT_PREAMBLE_INDENT
to
DiffXWriter
.It also adds a new options definition,
MetaFormat
, for available
metadata formats. This just includesJSON
right now.
Unit tests passed.
Used this with the upcoming DOM change.