[Lazarus] problem opening html help pages with spaces in path

Andrea Mauri andrea.mauri.75 at gmail.com
Tue Sep 21 12:20:11 CEST 2010


Il 17/09/2010 18.11, Mattias Gaertner ha scritto:
> Sorry, I thought this was on Linux. I only changed the Linux/Mac part.

In order to avoid problems related to spaces in help path I added a line 
in LazHelpHTML unit, function

function THTMLHelpDatabase.ShowURL(const URL, Title: string; var ErrMsg: 
string
   ): TShowHelpResult;

I added after this line:
   FullURL:= CombineURL(URLType,URLPath,URLParams);

this:

   {$IFDEF MSWINDOWS}
   FullURL:= '"' + FullURL + '"'
   {$ENDIF}

It works but I am not sure it is the best way to do this.
andrea




More information about the Lazarus mailing list