I'm using NWjs quite successfully so far for file I/O, but have reached a point where I need to be able to layout the text in a file for printing. The issue is that writing or appending to a file using NWjs writes as a single line. I know about the newline system expression, but that doesn't actually format the output text in the file. I can't find a reference to any system expression such as asc() that allows one to provide an ASCII value or I would try using a carriage return. Does such a thing exist? My other solution is to write a HTML string with the formatting tags I need and view the output/print as HTML.
I would prefer not to use a separate plugin just for this single purpose, but I'd like please anyone's suggestions or comments on how to easily lay out and format my output, whether using NWjs or not.