function [stat,post] = blktext(path,prop,bstr,bint,bflt)
%BLKTEXT Attaches documentation to a block diagram.
%

% Initial coding by A S Bozin, 5-27-97
% Copyright 1997-2000 The MathWorks, Inc.
% $Revision: 1.5 $ $Date: 2000/06/14 16:11:23 $

   stat = 0;					   % Error flag
   sb = bint(11)+1;				   % Beginning of the note
   se = mfindstr(bstr,sb,'|');
   if (sb ~= se)
      note = fixstring(bstr(sb:se-1));
      ind = find(note == '~');			   % End of line marker
      if (~isempty(ind))
	 note(ind) = char(10);			   % New line
      end
      bh = add_block('built-in/Note',sprintf('%s/%s',path,note),...
		     'ForegroundColor',prop.fgColor,...
		     'BackgroundColor',prop.bgColor,...
		     'Orientation',prop.orientation,...
		     'DropShadow',prop.border,...
		     'Position',prop.position);
   end
   post = blkio('init',0);
   return					   % Last card of BLKTEXT
