Coder Social home page Coder Social logo

No Column Separator about prettytable-rs HOT 2 CLOSED

hoodie avatar hoodie commented on June 15, 2024
No Column Separator

from prettytable-rs.

Comments (2)

phsym avatar phsym commented on June 15, 2024

You can create a custom format::TableFormat with a column separator set to ' ' (space).
This won't remove the column separator, but simply replace it by a space character.
Don't forget to adapt line separators to replace + by - so a separator like +----+----+ will become -----------

All this TableFormat API is a bit crappy for now and need to evolve to a much nicer API.

Allowing optional column separator is also possible as you suggested in pull request #6 .

from prettytable-rs.

phsym avatar phsym commented on June 15, 2024

v0.5.0 has just been published to crates.io. It contains the fix

from prettytable-rs.

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.