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

Remove empty g elements #42

Merged
merged 6 commits into from
Jul 24, 2014
Merged

Remove empty g elements #42

merged 6 commits into from
Jul 24, 2014

Conversation

Frank3K
Copy link
Contributor

@Frank3K Frank3K commented Jun 28, 2014

Remove empty g elements since they have no effect in a document.

Frank3K added 5 commits June 28, 2014 18:49
…object-based approach using cheerio.

This change is for better readability and maintainability of the code and does not noticeably impact the speed of the task.
…d mapped to uniqued IDs. Unreferenced IDs are removed in order to save space.
…nup is done on elements inside the <defs> element.

Changed option 'cleanup'; it now accepts an array of attributes. For backwards compatibility cleanup === true equals ['style']. The attributes in the array are removed from all elements.
@FWeinb
Copy link
Owner

FWeinb commented Jul 1, 2014

Can you clean up your PRs (#41 #40) and this one, currently they all have commits for unrelated features.

@Frank3K
Copy link
Contributor Author

Frank3K commented Jul 1, 2014

I would be happy to do that, but I have not yet found out how I can do that. I figured something might be off when adding these PR's three days ago, but I could not find a way to do it better.

Can you tell me what the best way is to fix these PR's? I have read about cherry-picking, and while it did seem to work for adding 4ec1249 to #40, I'm not sure how to apply this for the existing PR's; cherry-picking there gives conflicts...

@FWeinb
Copy link
Owner

FWeinb commented Jul 1, 2014

Try to rebase your changes to master and than remove all unrelated commits.
This http://stackoverflow.com/questions/6102297/how-do-i-clean-up-my-github-fork-so-i-can-make-clean-pull-requests?answertab=votes#tab-top might help

FWeinb added a commit that referenced this pull request Jul 24, 2014
Remove empty g elements
@FWeinb FWeinb merged commit 4e6c83b into FWeinb:master Jul 24, 2014
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