    # File lib/yard/templates/helpers/uml_helper.rb, line 33
          def tidy(data)
            indent = 0
            data.split(/\n/).map do |line|
              line.gsub!(/^\s*/, '')
              next if line.empty?
              indent -= 1 if line =~ /^\s*\}\s*$/
              line = (' ' * (indent * 2)) + line
              indent += 1 if line =~ /\{\s*$/
              line
            end.compact.join("\n") + "\n"
          end