Change formatting of output

This commit is contained in:
3eef8a28f26fb2bcc514e6f1938929a1f931762 2023-02-07 08:56:59 -05:00
parent 1a738eed0e
commit 2d5319902b

View file

@ -69,8 +69,12 @@ int main(const int argc,
std::fstream terms_offered_file{terms_offered_filename,std::ios::out}; std::fstream terms_offered_file{terms_offered_filename,std::ios::out};
std::fstream prerequisites_file{prerequisites_filename,std::ios::out}; std::fstream prerequisites_file{prerequisites_filename,std::ios::out};
terms_offered_file << data.terms_offered << std::endl; Json::StreamWriterBuilder swb;
prerequisites_file << data.prerequisites << std::endl; swb["indentation"] = " ";
std::unique_ptr<Json::StreamWriter> outWriter(swb.newStreamWriter());
outWriter->write(data.terms_offered,&terms_offered_file);
outWriter->write(data.prerequisites,&prerequisites_file);
terms_offered_file.close(); terms_offered_file.close();
prerequisites_file.close(); prerequisites_file.close();