improved print styles (includes fixes for FS#2645 and FS#2707)