File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments