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

add double line as default border #20

Closed
wants to merge 5 commits into from

Conversation

duncanhobbs
Copy link

@duncanhobbs duncanhobbs commented Mar 24, 2019

This pull request addresses issue #6 to add a default option border :double for latex table borders \hline\hline. I made this the default option, but I also included a border :single option to allow the user to keep \toprule' and \bottomrule' if they want.

I ran runtests.jl and there were no errors.

Let me know if there is anything I need to fix or tests that I should create.

@jacobadenbaum jacobadenbaum self-assigned this Mar 24, 2019
src/Printing.jl Outdated Show resolved Hide resolved
@jacobadenbaum
Copy link
Owner

If the default is going to change, I'd prefer to do one release that keeps single as the default, with a warning that the default is going to change to double in a future release.

@duncanhobbs
Copy link
Author

I changed the default to single line and added a warning that the default would change in future releases.

@duncanhobbs duncanhobbs marked this pull request as ready for review March 24, 2019 18:30
table_type == :latex && return "\\bottomrule\n\\end{tabular}"
elseif border == :none
table_type == :latex && return "\\bottomrule\n\\end{tabular}"
@warn("default border will change to double in future releases")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're missing an end statement here. That's why the travis builds are failing.

In general, you can catch some of these mistakes locally by running ] test TexTables on your machine. All of the tests should pass before we merge this pr.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed the error and ran the build on my local machine as you suggested. The tests all passed locally.

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

Successfully merging this pull request may close these issues.

2 participants