01: // Copyright (C) 2003,2004,2005 by Object Mentor, Inc. All rights reserved.
02: // Released under the terms of the GNU General Public License version 2 or later.
03: package fitnesse.html;
04:
05: public class HtmlComment extends HtmlTag {
06: public String comment;
07:
08: public HtmlComment(String comment) {
09: super ("commant");
10: this .comment = comment;
11: }
12:
13: public String html(int depth) throws Exception {
14: StringBuffer buffer = new StringBuffer();
15: addTabs(depth, buffer);
16: buffer.append("<!--").append(comment).append("-->")
17: .append(endl);
18: return buffer.toString();
19: }
20: }
|