improved the handling of URL enclosed in "..." or <...> (or others like that)

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@29261 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2010-03-26 01:24:42 +00:00
1 parent 393adbf667
commit f3ad3ab4be
3 files changed
+45 -1

No files matched your search

@@ -49,6 +49,10 @@ public abstract class AbstractMarkupText {
*/
public abstract String getText();
public char charAt(int idx) {
return getText().charAt(idx);
}
/**
* Length of the plain text.
*/
@@ -56,6 +60,14 @@ public abstract class AbstractMarkupText {
return getText().length();
}
/**
* Returns a subtext.
*
* @param end
* If negative, -N means "trim the last N-1 chars". That is, (s,-1) is the same as (s,length)
*/
public abstract MarkupText.SubText subText(int start, int end);
/**
* Adds a start tag and end tag at the specified position.
*