private String formatDescription(String description) {
			//
			// We are going to wrap lines at 50 columns so that they fit the tooltip window.  We
			// will also try to keep the original structure of manually separated lines by
			// preserving empty lines included in the original description.  Removing all newlines
			// except for the blank lines allows the line wrapping utility to create the best
			// output.
			//

			// split into lines and remove all leading/trailing whitespace
			String[] lines = description.split("\n");
			for (int i = 0; i < lines.length; i++) {
				String line = lines[i];
				lines[i] = line.trim();
			}

			// restore the newline characters; this will allow us to detect consecutive newlines
			StringBuilder bufffy = new StringBuilder();
			for (String line : lines) {
				bufffy.append(line).append("\n");
			}

			// Remove all newlines, except for consecutive newlines, which represent blank lines.
			// Then, for any remaining newline, add back the extra blank line.
			String trimmed = bufffy.toString();
			String stripped = trimmed.replaceAll("(?<!\n)\n", "");
			stripped = stripped.replaceAll("\n", "\n\n");
			return HTMLUtilities.lineWrapWithHTMLLineBreaks(stripped, 50);
		}
Returns true if the value of this editor is valid.  Clients can use this to verify that the
user text is a valid script selection.
@return true if the valid of this editor is valid.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/script/ScriptSelectionEditor.java