Giter VIP home page Giter VIP logo

data-exporter's People

Contributors

brsanthu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

data-exporter's Issues

1.0.4 release fails tests

Hey there,

it's me again, decided to finally incorporate the new 1.0.4 release into my application, just to find that 'mvn test' fails (for quite a few tests). :[

Jokes aside though, it might be slight side-effects of your recent changes, or some local problem on my end. I forced Maven to install it anyway and the output of my software is (as far as I can see) exactly as before and exactly as expected.

If you can't reproduce the test fails I could provide you with my 'mvn test' log. Here's my Maven version information:

Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 17:22:22+0200)
Maven home: /usr/share/maven-bin-3.1
Java version: 1.7.0_45, vendor: Oracle Corporation
Java home: /opt/icedtea-bin-7.2.4.3/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.14.0-gentoo", arch: "amd64", family: "unix"

Thanks!

TextAligner splits text regardless of cell height

When using the alignment MIDDLE_LEFT, MIDDLE_CENTER or MIDDLE_RIGHT, the text aligner ignores the cell height and generates several lines, only the first of which is actually shown in the output (when the cell height is 1). Unit tests do not uncover this bug because the cell content is too short to trigger it.

Cell value cannot be null or empty string

Caused by: java.lang.IllegalArgumentException: Height or width cannot be less than or equal to zero.
    at com.brsanthu.dataexporter.TextAligner.align(TextAligner.java:191)
    at com.brsanthu.dataexporter.TextAligner.align(TextAligner.java:184)
    at com.brsanthu.dataexporter.TextAligner.getRowHeight(TextAligner.java:162)
    at com.brsanthu.dataexporter.output.texttable.TextTableWriter.getMaxRowHeight(TextTableWriter.java:177)
    at com.brsanthu.dataexporter.output.texttable.TextTableWriter.formatRowCells(TextTableWriter.java:129)
    at com.brsanthu.dataexporter.output.texttable.TextTableWriter.writeRow(TextTableWriter.java:106)
    at com.brsanthu.dataexporter.DataWriter.writeRows(DataWriter.java:124)
    at com.brsanthu.dataexporter.DataExporter.addRows(DataExporter.java:183)

This is imho valid data, just handle it:

        StringWriter out = new StringWriter();
        TextTableExporter exporter = new TextTableExporter(out);
        exporter.addColumn("foo");
        exporter.addColumn("bar");
        exporter.addRow("foo", null);

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.