public static String lineWrapWithHTMLLineBreaks(String text, int maxLineLength) {

		if (isUnbreakableHTML(text)) {
			logUnbreakableHTMLWarning();
			return text;
		}

		List<String> lines = HtmlLineSplitter.split(text, maxLineLength);

		StringBuilder buffer = new StringBuilder();
		for (int n = 0; n < lines.size(); n++) {
			String line = lines.get(n);
			buffer.append(line);
			if (n != (lines.size() - 1)) {
				// Terminate line if not the last line
				buffer.append(BR);
				buffer.append('\n');
			}
		}
		return buffer.toString();
	}
Replaces all newline characters with HTML &lt;BR&gt; tags.

<P>Unlike {@link #toWrappedHTML(String)}, this method does <B>not</B> add the
&lt;HTML&gt; tag to the given text.

<P>Call this method when you wish to create your own HTML content, with parts of that
content line wrapped.

@param text the text to wrap
@param maxLineLength the max length of the line; 0 if no max is desired
@return the updated text
Ghidra/Framework/Gui/src/main/java/ghidra/util/HTMLUtilities.java