anchor.diff:  %% Split prompt-chunk at lines
   match_lines(Data,Patterns,EO) ->
       FoundPrompt = EO#eo.found_prompt,
  +    NeedLineBreak = EO#eo.wait_for_linebreak,
       case one_line(Data,[]) of
  -	{noline,Rest} when FoundPrompt=/=false ->
  +	{noline,Rest} when FoundPrompt=/=false, NeedLineBreak =:= true ->
   	    %% This is the line including the prompt
   	    case match_line(Rest,Patterns,FoundPrompt,EO) of
   		nomatch ->
  
positive.code:     case lists:keysearch(timeout,1,Opts) of
  	{value,{timeout,T}} -> T;
  	false -> ?DEFAULT_TIMEOUT
      end.
  get_repeat(Opts) ->
      case lists:keysearch(repeat,1,Opts) of
  
negative.code: 		{Tag,Match} ->
  		    {Tag,Match,[]}
  	    end;
  	{noline,Rest} when NeedLineBreak =:= false ->
  	    case match_line(Rest,Patterns,FoundPrompt,EO) of
  		nomatch ->
  		    {nomatch,prompt};
  		{Tag,Match} ->
  		    {Tag,Match,[]}
  	    end;
  	{noline, Rest} ->
  	    {nomatch,Rest};
  	{Line,Rest} ->
  	    case match_line(Line,Patterns,false,EO) of
  