RAW format is similar to TEXT format with several exceptions.
First, RAW format includes the embedded tags of TAGS format. Second, RAW format is not "line-wrapped". Lines in RAW format may be longer than 80 characters. Third, the RAW format uses the tilde character (~) to indicate a non-breaking space. Finally, each line in RAW format starts with a header. The format of the header is:
<unit identifier>:<indent>/<secondary indent>:<day>:<line>
The unit which produced this line of output. Currently the unit identifier is only used in the garrison log.
The number of spaces to indent this line when displaying it in TEXT format.
The number of spaces to indent any continuation lines if this line must be "wrapped".
The day of the month for this line of output.
Here is a (contrived) example of a line of RAW format output:
:0/3:17:Eristan Guardenriver~[n6l], Imperial Empire, duke, with five~workers, eight~sailors, arrived from [x1x] Imperial Plains.
and here is how it might be rendered in TEXT format:
17: Eristan Guardenriver [n6l], Imperial Empire, duke, with, five workers, 17: eight sailors, arrived from [x1x] Imperial Plains.