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.wikitext.widgets;
04:
05: import fitnesse.html.HtmlUtil;
06: import fitnesse.wikitext.WikiWidget;
07:
08: public class LineBreakWidget extends WikiWidget {
09: public static final String REGEXP = "(?:(?:\r\n)|\n|\r)";
10:
11: public LineBreakWidget(ParentWidget parent, String text) {
12: super (parent);
13: }
14:
15: public String render() throws Exception {
16: return HtmlUtil.BR.toString();
17: }
18:
19: public String asWikiText() throws Exception {
20: return "\n";
21: }
22:
23: }
|