bool isEmptyLine(Operation? previous, Operation target) { return (previous == null || previous.data.endsWith('\n')) && target.data.startsWith('\n'); }