Fix failures in last commit. Visibility only works in 1.9.x
Strip newlines in summary to fix formatting issues

Fixes #686