Fixed link whitespaces between attributes

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/social-networking/social-util-library@176826 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2019-01-25 14:59:53 +00:00
parent 203a6c76a2
commit eb4e11c081
1 changed files with 2 additions and 1 deletions

View File

@ -30,8 +30,9 @@ public class ReplaceableToken extends Token {
attributes.put("class", "link");
attributes.put("href", linkTarget);
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append("<a ");
stringBuilder.append("<a");
for(String key : attributes.keySet()) {
stringBuilder.append(" ");
stringBuilder.append(key);
stringBuilder.append("=\"");
stringBuilder.append(attributes.get(key));