[DRE-maint] Bug#1107538: ruby-html2text autopkg test fails with libxml 2.14.x from experimental

Abhijith PA abhijith at debian.org
Mon Dec 1 07:08:50 GMT 2025


Hi,

I did a quick look at ruby-html2text. Its very interesting. From what
I understand, I don't think adjusting test is enough (though it will
resolve this particular issue)

If we look at lib/html2text.rb;

=====================================
def prefix_whitespace(node)
    case node.name.downcase
      when "hr"
        "---------------------------------------------------------------\n"

      when "h1", "h2", "h3", "h4", "h5", "h6", "ol", "ul"
        "\n"

      when "tr", "p", "div"
        "\n"

      when "td", "th"
        "\t"

      when "li"
        "- "
    end
  end
=====================================

According to the test failure, there should be '\n' before the ---.
This is should be done from the html parser or something. So
technically, it is *not* issue of ruby-html2text.

Adding \n is above file can fix this, but it will fail for other
tests.

Anyway, I am not looking further on this issue. 

--abhijith



More information about the Pkg-ruby-extras-maintainers mailing list