/*
 * Copyright (C) 2016 Talsma ICT
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package nl.talsmasoftware.umldoclet.rendering;

import nl.talsmasoftware.umldoclet.rendering.indent.IndentingPrintWriter;

/**
 * @author <a href="mailto:info@talsma-software.nl">Sjoerd Talsma</a>
 */
public class SeparatorRenderer extends Renderer {

    protected final String separator;

    protected SeparatorRenderer(UMLDiagram diagram, String separator) {
        super(diagram);
        this.separator = separator;
    }

    @Override
    protected IndentingPrintWriter writeTo(IndentingPrintWriter output) {
        return output.append(separator).newline();
    }

    @Override
    public boolean equals(Object other) {
        return this == other;
    }

}

@@ -850,16 +850,137 @@
 erer %7B%0A%0A
+    // TODO Think about how to maintain state between what was just rendered%0A    // and what still needs to be rendered%0A%0A
     prot

Comment re: issue #21 No idea how to tackle this without re-working part of plantuml logic which I'm very reluctant to do.