Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.0.0 / tests / webtbs / tw3479.pp
Size: Mime:
{ Source provided for Free Pascal Bug Report 3479 }
{ Submitted by "Michalis Kamburelis" on  2004-12-26 }
{ e-mail: michalis@camelot.homedns.org }
{ Two cases where BreakStr = #10 hang WrapText.
  After applying my fix all things work OK.
}

uses SysUtils;
const
  Line1 = 'one blahblah blah bb b';
  Line2 = 'two hhhhh sss sssss wwwww';
begin
 Writeln(WrapText(Line1 +   #10+ Line2,    #10, [' '], 40));
 Writeln(WrapText(Line1 +#13#10+ Line2, #13#10, [' '], 40));
 Writeln(WrapText(Line1 +   #10+ Line2,    #10, [' '], 10));
 Writeln(WrapText(Line1 +#13#10+ Line2, #13#10, [' '], 10));
end.