-
Notifications
You must be signed in to change notification settings - Fork 284
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
Table padding option #130
Table padding option #130
Conversation
@Alir3z4 Could you squash and pull this one? I am unable to do so. |
Sure, I'll look into it and review it as well.
|
Merely looking for |
max_width = [len(x.rstrip()) + right_margin for x in lines[0].split('|')] | ||
for line in lines: | ||
cols = [x.rstrip() for x in line.split('|')] | ||
max_width = [max(len(x) + right_margin, old_len) for x, old_len in zip(cols, max_width)] |
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.
pep8 please ;)
I'll be setting up some code quality checkers and linters
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.
Hmm. For some reason my vim config of flake8 did not pick up any faults. Could you point out the changes I need to make?
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.
No problem, leave it out.
We still don't have strict rules for pep8 or code quality.
We'll be cleaning them with #131
@theSage21 I agree with @Changaco about tagging the output for post-processing formatting, there might be places where it will fail to find the correct |
Header 1 | Header 2 | Header 3 | ||
----------|-----------|---------------------------------------------- | ||
Content 1 | Content 2 | ![200](http://lorempixel.com/200/200) Image! | ||
Content 1 | Content 2 | ![200](http://lorempixel.com/200/200) Image! |
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.
I suggest varying the content of the first two columns a little so we can better see padding in action.
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.
Sounds good. I essentially copied the google_doc_tables test case and derived from there. I'm pushing this.
@Alir3z4 I think almost everything is fixed now. Squash and pull now? |
Has the read me and docs has been updated with new changes in this pull
|
Ah, completely forgot about those. My bad. Adding them in. |
- Add to usage
If things are done, lemme know so I can merge in. |
As far as I can see, everything is done. Please Squash and merge. |
Great work everybody. The pull request is in the master and I'll be releasing a new release soon. |
Would have been nice if you would have squashed it first. I made a mess out of the commits. |
It has been squashed already, isn't ?
|
Hmm, I don't know. All those dirty commits still appear in the history https://github.com/Alir3z4/html2text/commits/master |
@theSage21 Those commits are from yesterday that you pushed directly to master or from another pull request your merged I think, this is the squahed/merged commit df1d723 |
Hmm. Right. My mistake. I need sleep it seems. On Sun, May 29, 2016 at 6:00 PM, Alireza Savand [email protected]
|
!m @theSage21 @Alir3z4 :-) To thank you for your work I've set up small donation pledges for you on Liberapay (a new open source recurrent donations platform I created). ;-) |
@Changaco appreciate it. 😄 |
@Changaco Thank you, you're a great man. Again thank you for your great work. |
@theSage21 @Changaco Just released a new version: |
:-) @Alir3z4 We explain a few things about our code in the README, but it's true that we have a web framework problem. We're working on cleaning up Aspen, but you know how it is: so many things to do, so little time. ;-) |
Cell padding in Tables is added as an option to maintain backward compatibility. Solves #125