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 (0)

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.