adding one more convenience method.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11989 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-09-03 19:22:49 +00:00
1 parent 5140f54ded
commit df80fc38f4
1 file changed
+8
@@ -83,6 +83,14 @@ public class MarkupText extends AbstractMarkupText {
addMarkup(0,length(),replace(startTag),replace(endTag));
}
/**
* Works like {@link #surroundWith(String, String)} except
* that the token replacement is not performed on parameters.
*/
public void surroundWithLiteral(String startTag, String endTag) {
addMarkup(0,length(),startTag,endTag);
}
/**
* Gets the start index of the captured group within {@link MarkupText#getText()}.
*