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

MarkdownExporter right-justifies numeric columns #421

Merged
merged 5 commits into from
Apr 15, 2017
Merged

MarkdownExporter right-justifies numeric columns #421

merged 5 commits into from
Apr 15, 2017

Conversation

SteveDesmond-ca
Copy link
Contributor

@SteveDesmond-ca SteveDesmond-ca commented Apr 13, 2017

Now that #396 is complete, I've made a more complete pass at #398, to right-justify numeric columns in the MarkdownExporter, which would resolve #397.

  1. IColumn has a new IsNumeric property, which is set (what I believe to be) appropriately in all its implementations.
  2. SummaryTableColumn uses IsNumeric to set a new Justify property to either Left or Right
  3. MarkdownExporter uses Justify to determine whether to use : or as the justification indicator

@dnfclas
Copy link

dnfclas commented Apr 13, 2017

@SteveDesmond-ca,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

@SteveDesmond-ca
Copy link
Contributor Author

my bad, apparently missed some implementations


private static string getDelimiterLineForColumn(SummaryTable.SummaryTableColumn column)
{
var justifier = column.Justify == SummaryTable.SummaryTableColumn.TextJustification.Left ? " " : ":";

This comment was marked as spam.


public SummaryTableColumn(SummaryTable table, int index, bool alwaysShow)
public SummaryTableColumn(SummaryTable table, int index, IColumn column)

This comment was marked as spam.

@AndreyAkinshin AndreyAkinshin merged commit c923ba8 into dotnet:master Apr 15, 2017
@AndreyAkinshin
Copy link
Member

@SteveDesmond-ca, thanks!

@AndreyAkinshin AndreyAkinshin added this to the v0.10.4 milestone Apr 16, 2017
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.

Right-justify/align number columns for GitHub-flavored Markdown
3 participants