Fix rendering regression introduced in 28fabbe.

This made constructs like "//\w+//" render as "////", which is incorrect.
Update rendering tests to reflect changes to whitespace made in 28fabbe