Modify

#4107 new Bug

Au3 help file build tools has a small link error

Reported by: donnyh13 Owned by:
Milestone: Component: Documentation
Version: 3.3.18.0 Severity: None
Keywords: Cc:

Description

While perusing the AutoIt help file build tools, I found the following issue(s) when adding links to the examples.
in the file SciTELib.au3 the following lines are found: at lines 62-64

Line 
62; Exception for UDPStartup(), UDPShutdown()
63$sData = StringReplace($sData, '<a class="codeSnippetLink" href="UDPStartup.htm"><span class="S4">UDPStartup</span></a>', '<a class="codeSnippetLink" href="TCPStartup.htm"><span class="S4">UDPStartup</span></a>')
64$sData = StringReplace($sData, '<a class="codeSnippetLink" href="UDPShutdown.htm"><span class="S4">UDPShutdown</span></a>', '<a class="codeSnippetLink" href="TCPShutdown.htm"><span class="S4">UDPShutdown</span></a>')

The issue is this bit in the find portion, "href="UDPStartup.htm" has no path prefixing it, so is never found because just above all built-in functions just had the path "../functions/" added to them. Therefore any UDPStartup/UDPShutdown functions in examples lead to a wrong page (404). (See TCPStartup help page, example 2). I think the following would be correct:

Line 
62; Exception for UDPStartup(), UDPShutdown()
63$sData = StringReplace($sData, '<a class="codeSnippetLink" href="../functions/UDPStartup.htm"><span class="S4">UDPStartup</span></a>', '<a class="codeSnippetLink" href="../functions/TCPStartup.htm"><span class="S4">UDPStartup</span></a>')
64$sData = StringReplace($sData, '<a class="codeSnippetLink" href="../functions/UDPShutdown.htm"><span class="S4">UDPShutdown</span></a>', '<a class="codeSnippetLink" href="../functions/TCPShutdown.htm"><span class="S4">UDPShutdown</span></a>')

As a minor typo correction, on line 17 this line is duplicated:

Line 
17#include <StringConstants.au3> ; $STR_REGEXPARRAYGLOBALMATCH

Thank you.

Attachments (0)

Change History (1)

comment:1 by donnyh13, on Jul 25, 2026 at 12:39:49 AM

Just as a comment, maybe to receive some clarification, I can't figure out how the $tag find and replace works from just above the reported problem.

$sData = StringRegExpReplace($sData, '<span class="S9">(\$tag\w+?)</span>', '<a class="codeSnippetLink" href="\1.htm"><span class="S9">\1</span></a>')

The tag link turns out pointing to /libfunctions/$tag... , but this find and replace doesn't add /libfunctions/ path.
Somehow it works correctly, but I don't see how. But I guess maybe I should post in the forum instead.
Thank you,

Modify Ticket

Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.