public void newLine(int numLines)
            throws IOException {
        if (writer.toString().equals("") == false) {
            text.add(writer.toString());
        }
        writer = new StringWriter();
        for (int i = numLines; i > 0; --i) {
            text.add("");
        }
        needsTabs = true;
    }