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(renderer): Top level table styling #690

Merged
merged 1 commit into from
Jul 5, 2020

Conversation

gdamore
Copy link
Collaborator

@gdamore gdamore commented Jul 4, 2020

This provides top-level support for attributes to style the
entire table (frame, grid, float, stripes, width, autowidth).

The cols attribute is still not handled, meaning that it is
still not possible to configure column widths.

@gdamore
Copy link
Collaborator Author

gdamore commented Jul 4, 2020

I also renamed some attributes (the Go types, not the string values) to make better reuse of them for tables.

This provides top-level support for attributes to style the
entire table (frame, grid, float, stripes, width, autowidth).

The cols attribute is still not handled, meaning that it is
still not possible to configure column widths.
@gdamore
Copy link
Collaborator Author

gdamore commented Jul 4, 2020

(Whoops, forgot to regenerate the parser... -- it was impacted by the rename AttrImageWidth to AttrWidth)

@codecov
Copy link

codecov bot commented Jul 4, 2020

Codecov Report

Merging #690 into master will increase coverage by 0.07%.
The diff coverage is 96.87%.

@@            Coverage Diff             @@
##           master     #690      +/-   ##
==========================================
+ Coverage   85.24%   85.31%   +0.07%     
==========================================
  Files          71       71              
  Lines        4790     4816      +26     
==========================================
+ Hits         4083     4109      +26     
  Misses        451      451              
  Partials      256      256              

Copy link
Member

@xcoulon xcoulon left a comment

Choose a reason for hiding this comment

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

great work @gdamore! 🙌

@xcoulon xcoulon merged commit e6437ac into bytesparadise:master Jul 5, 2020
@@ -99,6 +93,16 @@ const (
AttrCaption = "caption"
// AttrStyle block or list style
AttrStyle = "style"
// AttrWidth the `width` attribute used ior images, tables, and so forth
AttrWidth = "width"
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should also rename AttrImageHeight to AttrHeight for the sake of consistency?

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