public class ForceNewLineRendererComponent extends AbstractRegexRendererComponent
| Modifier and Type | Field and Description |
|---|---|
static String |
FORCED_NEWLINE_CLASS
This is the class given to force newlines.
|
static String |
FORCED_NEWLINE_TAG
This is the html produced when a double-backslash is encountered in the wiki markup.
|
| Constructor and Description |
|---|
ForceNewLineRendererComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
appendSubstitution(StringBuffer buffer,
RenderContext context,
Matcher matcher)
Implement this method to perform your actual regex substitution.
|
String |
render(String wiki,
RenderContext context)
Render this piece of wiki text.
|
boolean |
shouldRender(RenderMode renderMode)
Whether or not this render component is required given the current render mode.
|
regexRenderpublic static final String FORCED_NEWLINE_CLASS
public static final String FORCED_NEWLINE_TAG
public boolean shouldRender(RenderMode renderMode)
RendererComponentshouldRender in interface RendererComponentshouldRender in class AbstractRegexRendererComponentpublic String render(String wiki, RenderContext context)
RendererComponentrender in interface RendererComponentrender in class AbstractRegexRendererComponentpublic void appendSubstitution(StringBuffer buffer, RenderContext context, Matcher matcher)
AbstractRegexRendererComponentappendSubstitution in class AbstractRegexRendererComponentCopyright © 2019 Atlassian. All rights reserved.