Revision 7e11e39b
Added by Katja Luther about 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/util/RichtextHelper.java | ||
---|---|---|
69 | 69 |
Matcher matcher = pattern.matcher(text); |
70 | 70 |
if (matcher.find()) |
71 | 71 |
{ |
72 |
String result0 = matcher.group(); |
|
72 | 73 |
String result = matcher.group(1); |
74 |
String result2 = matcher.group(2); |
|
73 | 75 |
return matcher.group(2); |
74 | 76 |
} |
75 | 77 |
return null; |
... | ... | |
79 | 81 |
return inRef.toInlineString(innerText); |
80 | 82 |
|
81 | 83 |
} |
84 |
|
|
85 |
public static String findInnerText(String text, IntextReference inRef){ |
|
86 |
String innerText = null; |
|
87 |
if (inRef.getTarget() != null){ |
|
88 |
String inLineString = RichtextHelper.findInlineString(text, inRef.toInlineString("(.*?)")); |
|
89 |
innerText = RichtextHelper.findInText(inLineString, "(<cdm:.+>)(.+)(</cdm:.+>)"); |
|
90 |
} |
|
91 |
return innerText; |
|
92 |
} |
|
82 | 93 |
} |
Also available in: Unified diff
fix problem with more than one inline reference