Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moved tag lineno to parseTag()

  • Loading branch information...
commit ca29f90da1d6ebbc8d1590e6a61bf705ca3a12e5 1 parent 4e1f11c
@tj tj authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/jade.js
View
6 lib/jade.js
@@ -386,7 +386,7 @@ Parser.prototype = {
parseExpr: function(){
switch (this.peek.type) {
case 'tag':
- return this._ + this.parseTag();
+ return this.parseTag();
case 'doctype':
return this.parseDoctype();
case 'filter':
@@ -600,12 +600,12 @@ Parser.prototype = {
// Build the tag
if (selfClosing.indexOf(name) >= 0) {
- return [
+ return this._ + [
"buf.push('<" + name + attrBuf + (html5 ? '' : ' /' ) + ">');",
buf.join('\n')
].join('\n');
} else {
- return [
+ return this._ + [
"buf.push('<" + name + attrBuf + ">');",
buf.join('\n'),
"buf.push('</" + name + ">');"
Please sign in to comment.
Something went wrong with that request. Please try again.