enforceIndentation
Applies indentation enforcement at the specified position, preserving the specified number of characters. This is the main enforcement method that: 1. Analyzes the context to determine extra whitespace 2. Calculates how much to remove based on charactersToPreserve 3. Removes the excess 4. Returns the adjusted index
Return
the new index position after enforcement
Parameters
nodeText
the node text to modify
index
current position
charactersToPreserve
how many indentation characters to keep