Use white-space: pre instead of nowrap for code.