Loading lib/jsduck/doc/parser.rb +1 −1 Original line number Diff line number Diff line Loading @@ -119,7 +119,7 @@ module JsDuck end def indented_as_code? @multiline_tag[:doc] =~ /^ {4,}[^\n]*\Z/ @multiline_tag[:doc] =~ /^ {4,}[^\n]*\z/ end end Loading spec/doc_parser_spec.rb +14 −0 Original line number Diff line number Diff line Loading @@ -208,4 +208,18 @@ describe JsDuck::Doc::Parser do end end describe "indented code on previous line" do before do @params = parse_single(<<-EOS.strip).find_all {|t| t[:tagname] == :param } * @param x * Foo * Bar * @param y EOS end it "doesn't cause the tag to be skipped" do @params.length.should == 2 end end end Loading
lib/jsduck/doc/parser.rb +1 −1 Original line number Diff line number Diff line Loading @@ -119,7 +119,7 @@ module JsDuck end def indented_as_code? @multiline_tag[:doc] =~ /^ {4,}[^\n]*\Z/ @multiline_tag[:doc] =~ /^ {4,}[^\n]*\z/ end end Loading
spec/doc_parser_spec.rb +14 −0 Original line number Diff line number Diff line Loading @@ -208,4 +208,18 @@ describe JsDuck::Doc::Parser do end end describe "indented code on previous line" do before do @params = parse_single(<<-EOS.strip).find_all {|t| t[:tagname] == :param } * @param x * Foo * Bar * @param y EOS end it "doesn't cause the tag to be skipped" do @params.length.should == 2 end end end