Giter Club home page Giter Club logo

Comments (6)

hartwork avatar hartwork commented on June 12, 2024

Bug confirmed, quest had a quick look so far, no idea yet.

from ansi2html.

hartwork avatar hartwork commented on June 12, 2024

Please try again with pull request #37 applied. My results for comparison below.

Command: sh vimcat.sh bin/ansi2html | ansi2html --partial

Output by ansi2html 0.10.0:

<span class="ansi34">#!/usr/bin/python2.7
</span
<span class="ansi34"># EASY-INSTALL-ENTRY-SCRIPT: 'ansi2html==0.10.0','console_scripts','ansi2html'
</span
__requires__ = <span class="ansi31">'ansi2html==0.10.0'
</span
<span class="ansi35">import</span> sys
<span class="ansi35">from</span> pkg_resources <span class="ansi35">import</span> load_entry_point

<span class="ansi33">if</span> __name__ == <span class="ansi31">'__main__'</span>:
    sys.exit(
        load_entry_point(<span class="ansi31">'ansi2html==0.10.0'</span>, <span class="ansi31">'console_scripts'</span>, <span class="ansi31">'ansi2html'</span>)()
    )

Output with pull request #37 applied:

<span class="ansi34">#!/usr/bin/python2.7
</span><span class="ansi34"># EASY-INSTALL-ENTRY-SCRIPT: 'ansi2html==0.10.0','console_scripts','ansi2html'
</span>__requires__ = <span class="ansi31">'ansi2html==0.10.0'
</span><span class="ansi35">import</span> sys
<span class="ansi35">from</span> pkg_resources <span class="ansi35">import</span> load_entry_point

<span class="ansi33">if</span> __name__ == <span class="ansi31">'__main__'</span>:
    sys.exit(
        load_entry_point(<span class="ansi31">'ansi2html==0.10.0'</span>, <span class="ansi31">'console_scripts'</span>, <span class="ansi31">'ansi2html'</span>)()
    )

from ansi2html.

posativ avatar posativ commented on June 12, 2024

Yup, can confirm it works now.

from ansi2html.

hartwork avatar hartwork commented on June 12, 2024

Thanks for testing!

PS: You have an impressive response time I must say :)

from ansi2html.

hartwork avatar hartwork commented on June 12, 2024

PS: The bug existed in 0.9.4 already. This demonstrates the bug for both 0.9.4 and 0.10.0:

# echo -e -n '\x1b[31mRED\x1b[0m' | ansi2html --inline
<span style="color: #aa0000">RED</span
                                      ^

from ansi2html.

hartwork avatar hartwork commented on June 12, 2024

Can be closed since #37 is merged now.

from ansi2html.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.