Skip to content

Commit 679ff5e

Browse files
committed
Merge pull request #17 from kpumuk/master
Updates for Go r59
2 parents 9ed94a7 + 57f1e85 commit 679ff5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mustache.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ func (tmpl *Template) parseSection(section *sectionElement) os.Error {
219219
return parseError{tmpl.curline, "Invalid meta tag"}
220220
}
221221
tag = strings.TrimSpace(tag[1 : len(tag)-1])
222-
newtags := strings.Split(tag, " ", 2)
222+
newtags := strings.SplitN(tag, " ", 2)
223223
if len(newtags) == 2 {
224224
tmpl.otag = newtags[0]
225225
tmpl.ctag = newtags[1]
@@ -300,7 +300,7 @@ func (tmpl *Template) parse() os.Error {
300300
return parseError{tmpl.curline, "Invalid meta tag"}
301301
}
302302
tag = strings.TrimSpace(tag[1 : len(tag)-1])
303-
newtags := strings.Split(tag, " ", 2)
303+
newtags := strings.SplitN(tag, " ", 2)
304304
if len(newtags) == 2 {
305305
tmpl.otag = newtags[0]
306306
tmpl.ctag = newtags[1]

0 commit comments

Comments
 (0)