X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Futil%2FParseHtmlBodyAndLinks.java;h=6713bbca047aad2aba25903dc590f19884c57a23;hb=8d5cf09fa18cde0cb0d0362adc64571be5b08dc6;hp=6d02d6461b4de8a83e83d60e805ece8883e82615;hpb=838e4f91d4a53dd315640dbc9ff6ef7a815ee576;p=jalview.git diff --git a/src/jalview/util/ParseHtmlBodyAndLinks.java b/src/jalview/util/ParseHtmlBodyAndLinks.java index 6d02d64..6713bbc 100644 --- a/src/jalview/util/ParseHtmlBodyAndLinks.java +++ b/src/jalview/util/ParseHtmlBodyAndLinks.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b1) - * Copyright (C) 2015 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -97,12 +97,12 @@ public class ParseHtmlBodyAndLinks public ParseHtmlBodyAndLinks(String description, boolean removeHTML, String newline) { - StringBuilder sb = new StringBuilder(description.length()); if (description == null || description.length() == 0) { htmlContent = false; return; } + StringBuilder sb = new StringBuilder(description.length()); if (description.toUpperCase().indexOf("") == -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 - sb = new StringBuilder(LEFT_ANGLE_BRACKET_PATTERN - .matcher(description).replaceAll("<")); + sb = new StringBuilder(LEFT_ANGLE_BRACKET_PATTERN.matcher(description) + .replaceAll("<")); } content = translateEntities(sb.toString()); }