Suppress extra spaces

This commit is contained in:
M66B 2019-11-07 10:30:31 +01:00
parent 46dd99e82e
commit 35cf9faf62
1 changed files with 3 additions and 1 deletions

View File

@ -674,7 +674,9 @@ public class HtmlHelper {
newline();
tlevel = qlevel;
}
if (!nl)
if (!nl &&
(text != null && !text.startsWith(" ")) &&
(sb.length() > 0 && sb.charAt(sb.length() - 1) != ' '))
sb.append(" ");
sb.append(text);
nl = false;