I'm using Minimod.PrettyPrint. For multidimensional lists and arrays, the PrettyPrint() function inserts line breaks between elements automatically if the elements are over a certain length.
My question is - How do I control when the line breaks happen between array elements? Specifically, I'd like all array elements to have a line break between them. For example, I would like the function
// myArray is of type int myArray.PrettyPrint(/*insert customization here to make the line break*/);
[ [<elements of myArray>], [<elements of myArray>], [<elements of myArray>] ]
PrettyPrint() will print this as
[[<elements of myArray>],[<elements of myArray>],[<elements of myArray>]]
if the length the string written by
PrettyPrint() is below a certain length.
There is an overload of
PrettyPrint() that takes an object to customize the output, but I can't find examples of how to use it.
Edit: I've tried
PrettyPrintMinimod.Settings settings = new PrettyPrintMinimod.Settings(); settings.PreferMultiline(true); myArray.PrettyPrint(settings);
and it doesn't seem to do anything. If I pass
settings.PreferMultiline(false) to an array with many elements, I still get line breaks, and if I pass
settings.PreferMultiline(true) I don't get line breaks.