Commit 43b1771d authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Merge branch 'master' into doc-tags

parents 1b4e11e7 6425fc93
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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

+14 −0
Original line number Diff line number Diff line
@@ -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