Compact map files to one line