mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-09 17:55:01 +01:00
Fixed chm index's every other line being blank.
Fixed chm files having double slashes. Now images load properly. git-svn-id: trunk@35870 -
This commit is contained in:
parent
f242a18097
commit
a34ee0ddb8
@ -94,8 +94,11 @@ begin
|
|||||||
inc(FilesCompressed);
|
inc(FilesCompressed);
|
||||||
debugln(['chm processing ',FilesCompressed,' of ',Writer.FilesToCompress.Count,' "',DataName,'" ...']);
|
debugln(['chm processing ',FilesCompressed,' of ',Writer.FilesToCompress.Count,' "',DataName,'" ...']);
|
||||||
Result := False; // Return true to abort compressing files
|
Result := False; // Return true to abort compressing files
|
||||||
Filename:=DataName;
|
Filename:=ExtractFileName(DataName);
|
||||||
PathInChm:='/';
|
PathInChm:='/'+ExtractFilePath(DataName);
|
||||||
|
// cleanup string
|
||||||
|
PathInChm:=StringReplace(PathInChm, '\','/',[rfReplaceAll]);
|
||||||
|
PathInChm:=StringReplace(PathInChm, '//','/',[rfReplaceAll]);
|
||||||
Page:=TW2CHMPage(DocumentNameToPage[DataName]);
|
Page:=TW2CHMPage(DocumentNameToPage[DataName]);
|
||||||
if Page<>nil then begin
|
if Page<>nil then begin
|
||||||
// a page
|
// a page
|
||||||
@ -159,7 +162,6 @@ begin
|
|||||||
wl(' <li> <object type="text/sitemap">');
|
wl(' <li> <object type="text/sitemap">');
|
||||||
wl(' <param name="Name" value="'+StrToXMLValue(Page.WikiPage.Title)+'">');
|
wl(' <param name="Name" value="'+StrToXMLValue(Page.WikiPage.Title)+'">');
|
||||||
wl(' <param name="Local" value="'+StrToXMLValue(GetPageLink(Page))+'">');
|
wl(' <param name="Local" value="'+StrToXMLValue(GetPageLink(Page))+'">');
|
||||||
wl(' <object type="text/sitemap">');
|
|
||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
List.Free;
|
List.Free;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user