[teiviewer] (minor) less lines, cleaner code, same behavior