red -> state
misspelled variable; fixes #126
Fix msg->note translation in text formatter
Formatting