refs #154 - replace only package names with regex
refs #154 - another adjustment to html emulation proportion