mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-10 02:26:18 +00:00
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:
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()}.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user