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

Up a notch #3

Closed
wants to merge 2 commits into from
Closed

Up a notch #3

wants to merge 2 commits into from

Conversation

richkniles
Copy link

No description provided.

text = `unzip -p #{to_shell(@file_path)} | grep '<w:t'`
return unless text && text.length > 0
doc = Nokogiri::XML(text)
doc.xpath('//w:del').each(&:remove)
Copy link
Author

Choose a reason for hiding this comment

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

<w:del ...> nodes represent deleted text that can be displayed under track changes.

Copy link
Owner

Choose a reason for hiding this comment

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

This looks like a nice readability improvement! Any chance you could add a spec and fixture that includes these deleted nodes?

@richkniles richkniles closed this Mar 15, 2016
@richkniles richkniles deleted the up_a_notch branch March 15, 2016 21:54
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.

None yet

2 participants