private static String alignSingleLine(String value, int columnWidth, Alignment align) {
		int length = value.length();
		return switch (align) {
			case LEFT -> value + " ".repeat(columnWidth - length);
			case CENTER -> {
				int left = (columnWidth - length) / 2;
				int right = left;
				if (left + right + length < columnWidth) {
					right++;
				}
				yield " ".repeat(left) + value + " ".repeat(right);
			}
			case RIGHT -> " ".repeat(columnWidth - length) + value;
		};
	}
Aligns the single line value according to the column width and alignment

@param value the value to align
@param columnWidth the column width
@param align the alignment
@return the aligned value
GhidraBuild/BuildFiles/Doclets/src/main/java/ghidra/doclets/typestubs/RstTableBuilder.java