Preventing common bugs in print style