             if j < row.length
               row.pop()
           j--
-    new @ data
+    @data = data
   writeSVG: (mappings, filename) ->
     ## Default filename is the input filename with extension replaced by .svg
     unless filename?

      else
        files++
        console.log '*', arg
        input = Input.load arg
        if input instanceof Mapping
          mappings.push input
        else if input instanceof Drawing or input instanceof Drawings


class ASCIIDrawing extends Drawing
  @title: "ASCII drawing (one character per symbol)"
  parse: (data) ->
    @load splitIntoLines data

class DSVDrawing extends Drawing
  parse: (data) ->
    ## Remove trailing newline / final blank line.
    if data[-2..] == '\r\n'
      data = data[...-2]
