Giter Club home page Giter Club logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Thanks for the report and sorry for the slow response time.

I agree that the current behviour is sub-optimal, if only because the cause of 
the problem is not very explicit: ideally the exception message should 
explicitly identify the use of colspan as the cause of the problem, so a user 
is not left scratching their head.

As for the prospect of actually parsing a colspan-using table instead of 
failing explicitly, I am not sure how I feel about the first option you 
present, i.e.:

+---------+---------+
| Field 1 | Field 2 |
+---------+---------+
|   one   |   two   |
|       three       |
+---------+---------+

Doing this would require a fairly drastic change to the way PrettyTable 
represents table contents.  The other option would be quicker and easier, and I 
think it represents a better trade-off between cost involved and utility 
gained, given that I think this is a relatively rare issue (this is the first 
report I've received).  I'll try to get this into the next release.

Original comment by [email protected] on 9 Sep 2013 at 5:26

from prettytable.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024

Original comment by [email protected] on 9 Sep 2013 at 5:27

  • Changed state: Accepted

from prettytable.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
This is now implemented in trunk.  It yields the second kind of table you 
suggested, i.e. blank columns after the first column, up to the appropriate 
number.  Please feel free to test this feature and provide feedback.

Original comment by [email protected] on 7 Oct 2013 at 9:07

  • Changed state: Fixed

from prettytable.

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.