diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2015-01-09 22:36:25 -0800 | 
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2015-01-09 23:17:00 -0800 | 
| commit | 1640365a8ba0c414e03922796dd5a0ed0e600bda (patch) | |
| tree | cd26db1051a444756a692668180513ea937459fa /js/lib/blocks.js | |
| parent | 711a42275a4f13cfafa771aeffa6771e0a904e91 (diff) | |
Removed redundant condition.
Diffstat (limited to 'js/lib/blocks.js')
| -rw-r--r-- | js/lib/blocks.js | 8 | 
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."); -              }          }      } | 
