aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-09 22:36:25 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-09 23:17:00 -0800
commit1640365a8ba0c414e03922796dd5a0ed0e600bda (patch)
treecd26db1051a444756a692668180513ea937459fa
parent711a42275a4f13cfafa771aeffa6771e0a904e91 (diff)
Removed redundant condition.
-rw-r--r--js/lib/blocks.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/js/lib/blocks.js b/js/lib/blocks.js
index 2939afe..c6e5d75 100644
--- a/js/lib/blocks.js
+++ b/js/lib/blocks.js
@@ -519,16 +519,10 @@ var incorporateLine = function(ln, line_number) {
this.addLine(ln, first_nonspace);
} else if (blank) {
break;
- } else if (container.t !== 'HorizontalRule' &&
- container.t !== 'Header') {
+ } else {
// create paragraph container for line
container = this.addChild('Paragraph', line_number, first_nonspace);
this.addLine(ln, first_nonspace);
- } else {
- console.log("Line " + line_number.toString() +
- " with container type " + container.t +
- " did not match any condition.");
-
}
}
}