git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-1544 corrected 'adjunst' to 'adjust'
[jalview.git]
/
src
/
jalview
/
util
/
ParseHtmlBodyAndLinks.java
diff --git
a/src/jalview/util/ParseHtmlBodyAndLinks.java
b/src/jalview/util/ParseHtmlBodyAndLinks.java
index
f1b83b8
..
6713bbc
100644
(file)
--- a/
src/jalview/util/ParseHtmlBodyAndLinks.java
+++ b/
src/jalview/util/ParseHtmlBodyAndLinks.java
@@
-97,12
+97,12
@@
public class ParseHtmlBodyAndLinks
public ParseHtmlBodyAndLinks(String description, boolean removeHTML,
String newline)
{
public ParseHtmlBodyAndLinks(String description, boolean removeHTML,
String newline)
{
- StringBuilder sb = new StringBuilder(description.length());
if (description == null || description.length() == 0)
{
htmlContent = false;
return;
}
if (description == null || description.length() == 0)
{
htmlContent = false;
return;
}
+ StringBuilder sb = new StringBuilder(description.length());
if (description.toUpperCase().indexOf("<HTML>") == -1)
{
htmlContent = false;
if (description.toUpperCase().indexOf("<HTML>") == -1)
{
htmlContent = false;
@@
-153,8
+153,8
@@
public class ParseHtmlBodyAndLinks
{
// instead of parsing the html into plaintext
// clean the description ready for embedding in html
{
// instead of parsing the html into plaintext
// clean the description ready for embedding in html
- sb = new StringBuilder(LEFT_ANGLE_BRACKET_PATTERN
- .matcher(description).replaceAll("<"));
+ sb = new StringBuilder(LEFT_ANGLE_BRACKET_PATTERN.matcher(description)
+ .replaceAll("<"));
}
content = translateEntities(sb.toString());
}
}
content = translateEntities(sb.toString());
}