Skip to content

Commit 7a9202e

Browse files
committed
Added check for missed substitution in Make_Announcement.xml
1 parent 31d4294 commit 7a9202e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

install/Make_Announcement.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
purpose="Makes the announcement for a new version of MUSHclient"
1111
date_written="2010-11-15"
1212
requires="4.60"
13-
version="1"
13+
version="1.1"
1414
>
1515
<description trim="y">
1616
<![CDATA[
@@ -153,6 +153,13 @@ function make_announcement ()
153153
-- do the replacements
154154
template = string.gsub (template, "<<[%w_]+>>", replacements)
155155
156+
-- check if we missed one
157+
local extra = string.match (template, "<<[%w_]+>>")
158+
if extra then
159+
ColourNote ("red", "", "Un-substituted tag: " .. extra)
160+
return
161+
end -- if
162+
156163
-- output to MUSHclient window for checking
157164
print (string.rep ("-", 80))
158165
ColourNote ("cyan", "", template)

install/announcement_template.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<p>I am pleased to release <a href="<<installer_url>>">version <<version>> of MUSHclient</a>. See the <a href="http://www.gammon.com.au/scripts/showrelnote.php?version=<<version>>&productid=0">release notes</a> for more details.</p>
22

3-
43
<p><b>Improvements</b></p>
54
<ul>
65
<<description>>

0 commit comments

Comments
 (0)