Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: raw CSV output #51

Open
LogicStuff opened this issue Apr 29, 2020 · 3 comments
Open

Feature request: raw CSV output #51

LogicStuff opened this issue Apr 29, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@LogicStuff
Copy link

In my application, I pretty-print the data, but save them in a CSV as well. This would relieve me from having to manually write to the CSV stream myself (though the C++ syntax is similar).

@seleznevae seleznevae added the enhancement New feature or request label Apr 29, 2020
@seleznevae
Copy link
Owner

Hi!
I'll also add that there were some requests to add output in the format that can be used in HTML.

@carpikes
Copy link

Same here! The CSV output would be amazing!

@brlcad
Copy link
Contributor

brlcad commented Nov 28, 2020

Depending on the data in your cells, you can format cells to semi-automate csv output using libfort. For example, if you set FT_CPROP_RIGHT_PADDING and FT_CPROP_LEFT_PADDING to 0 with FT_PLAIN_STYLE, then you can write out commas into the cells when adding values. For example, I have a table of doubles I print with:
ft_printf_ln(table, "%8.2lf,|%8.2lf,|%8.2lf,|%8.2lf", vals[0], vals[1], vals[2], vals[3]);
which results in:
-1.12, 0.00, 0.00, 4.12
Using that, you can create your own csv outputter with relative ease.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants