ui: move pre/post processes from low-level write()s to _writenobuf()
This helps adding a dedicated stream for status/error messages. I don't
want to add _write*() function per stream.
#require docutils gettext $ $TESTDIR/check-gendoc pt_BR checking for parse errors