From 1640365a8ba0c414e03922796dd5a0ed0e600bda Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 9 Jan 2015 22:36:25 -0800 Subject: Removed redundant condition. --- js/lib/blocks.js | 8 +------- 1 file changed, 1 insertion(+), 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."); - } } } -- cgit v1.2.3