private static List<String> forceSplitOn(String s, int size) {

		List<String> lines = new ArrayList<>();
		StringBuilder buffy = new StringBuilder();
		for (int i = 0; i < s.length(); i++) {
			buffy.append(s.charAt(i));
			if (buffy.length() == size) {
				lines.add(buffy.toString());
				buffy.delete(0, buffy.length());
			}
		}

		if (buffy.length() > 0) {
			lines.add(buffy.toString());
		}

		return lines;
	}
Splits the given line into multiple lines based upon the given max length.

<P>Once the maximum provided length is passed, the algorithm attempts to split on a word
boundary by first looking backwards in the given line (since the last split value) to
find a space.  If no space is found in that direction, then the algorithm will keep
walking forward until either a space is found or {@link #MAX_WORD_LENGTH} is passed,
at which point the line will be ended, splitting any word that surrounds that index.

@param text the text to wrap
@param maxLineLength the max desired length of each output line
@param whitespacer the object that knows how to manipulate whitespace depending 
       upon client preferences
@return the new lines
Ghidra/Framework/Gui/src/main/java/ghidra/util/html/HtmlLineSplitter.java