toCF
fn
string toCF(CfDocument doc, CfWriterConfig config = CfWriterConfig.init)Converts a CfDocument to CF format string.
This produces roundtrip-preserving output using the document's metadata to reproduce original formatting as closely as possible.
Parameters
doc | The document to serialize |
config | Writer configuration options (used as fallback) |
Returns
A CF formatted string.