from typing import Tuple


def __check_for_newline(line: str, pos: int) -> Tuple[bool, int]:
  """Check if line is newline.

  Args:
    line: line.
    pos: current position.

  Returns:
    bool and current position.
  """
  saw_newline = False
  while pos < len(line) and line[pos].isspace():
    if line[pos] == '\n':
      saw_newline = True
    pos += 1
  return saw_newline, pos