-
-
Notifications
You must be signed in to change notification settings - Fork 503
Bugfix/cell after colspan #39
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
Conversation
| // | Col1a | Col2a | Col3a | | ||
| // | Col12 | Col3b | | ||
| // | Col123 | | ||
| // | Col1b | Col3b | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should not change directly this file but instead modify the GridTableSpecs.md and then save the Specs.tt file from VS to force the code gen of Specs.cs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
D'oh!
Navigated to the specs.cs file from ReSharper test session window, didn't even notice it was generated from T4!
|
Good catch! |
| | Col1a | Col2a | Col3a | | ||
| | Col12 | Col3b | | ||
| | Col123 | | ||
| | Col1b | Col3b | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to regenerate the Specs.cs by saving the tt again (you can amend this commit)
|
The build is failing because CommonMark specs changed recently and I was not referencing a specific commit. I will give you the details to fix this later today or tomorrow once I have access to a laptop with WIFI connection! 😅 |
|
Is that why the specs file that I've regenerated has loads of other changes? |
|
Okay, I messed up some of the commits (accidentally rebased from a feature branch and pushed the changes) so I've done a hard reset and forced the changes correctly. Slightly naughty, but cleaner result. |
|
Could you rebase (and not merge) on top of latest master so that you should get a non changing Specs.cs and then amend your last commit to regenerate the cs from tt file? Thanks |
|
Done and done. Thanks. |
|
Thanks a lot for this fix! |
|
I also have some work on implementing rowspan for grid tables that I'm testing out. Are you happy to review a pull request when it's ready? |
|
sure |
Example 003 for Grid Tables has a small error in the expected output.
Input:
Should produce:
Col1a
Col2a
Col3a
But the spec expects (and currently passes):
Col1a
Col2a
Col3a
This hides a small bug when cells follow cells with with a colspan.
I've adjusted the way column span is calculated to correct this.
I've also added a property to
TableCellcalledColumnIndexwhich records which column a cell belongs to, to make sure alignment is correctly inherited. This property is not used for pipe tables.