mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 16:09:31 +02:00
* fixes #40893 using Otherfiles parameter to fpdoc with CHM backend.
This commit is contained in:
parent
0a6344270a
commit
4b4e40dbc9
@ -154,13 +154,13 @@ type
|
||||
Property BaseImageURL : String Read FBaseImageURL Write FBaseImageURL;
|
||||
end;
|
||||
|
||||
Function FixHTMLpath(S : String) : STring;
|
||||
Function FixHTMLpath(const S : String) : STring;
|
||||
|
||||
implementation
|
||||
|
||||
uses fpdocstrs, xmlread, sysutils, sh_pas;
|
||||
|
||||
Function FixHTMLpath(S : String) : STring;
|
||||
Function FixHTMLpath(const S : String) : STring;
|
||||
|
||||
begin
|
||||
Result:=StringReplace(S,'\','/',[rfReplaceAll]);
|
||||
|
@ -212,7 +212,7 @@ end;
|
||||
function TCHMHTMLWriter.RetrieveOtherFiles(const DataName: String; out
|
||||
PathInChm: String; out FileName: String; var Stream: TStream): Boolean;
|
||||
begin
|
||||
Result:=True;
|
||||
Result:=False;
|
||||
if Stream <> nil then
|
||||
Stream.Free;
|
||||
Stream := TMemoryStream.Create;
|
||||
@ -223,7 +223,7 @@ begin
|
||||
PathInChm := ExtractRelativepath(GetCurrentDir, ExtractFileDir(DataName))
|
||||
else
|
||||
PathInChm := '/';
|
||||
FixHTMLpath(PathInChm);
|
||||
PathInChm:=FixHTMLpath(IncludeLeadingPathDelimiter(IncludeTrailingPathDelimiter(PathInChm)));
|
||||
Stream.Position := 0;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user