Replace ~~~ in diagnostic decoration with spaces.