We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c117ce6 + 36023a5 commit aa99020Copy full SHA for aa99020
1 file changed
syncode/mask_store/mask_store.py
@@ -269,10 +269,10 @@ def _remove_left_whitespace(
269
if (self._fsms.initial(fsm_state.terminal) == fsm_state or self._fsms.is_final(fsm_state)) and self._ignore_whitespace:
270
if isinstance(remainder, bytes):
271
# For bytes, use lstrip() to remove all leading whitespace
272
- remainder = remainder.lstrip()
+ remainder = remainder.lstrip(b' ')
273
elif isinstance(remainder, str):
274
# For strings, use lstrip() to remove all leading whitespace
275
+ remainder = remainder.lstrip(' ')
276
return remainder
277
278
def _lookup_next_tokens_for_fsm_state(self, fsm_state: JointFSMState, next_terminal) -> torch.Tensor:
0 commit comments