private String getPadString(String line) {
		StringBuffer sb = new StringBuffer();
		for (int i = 0; i < line.length(); i++) {
			if (line.charAt(i) == ' ') {
				sb.append(' ');
			}
			else {
				break;
			}
		}
		return sb.toString();
	}
Write the JavaHelp table of contents file.

@throws IOException
Ghidra/Framework/Help/src/main/java/help/TOCConverter.java