ruby-docx / docx

a ruby library/gem for interacting with .docx files
MIT License
431 stars 170 forks source link

add revision mark (text) in paragraph text #140

Open miko53 opened 1 year ago

miko53 commented 1 year ago

When a docx file has revision marks, the text returned doesn't include them.

Is it possible to have a mean to include them ? May be consider the document with all revisions marks accepted ?

In a first approach, I see that revision mark are inserted with 'w:ins' tag, when added this tag in the xpath search (in paragraph.rb line 62), we obtain the text with revision included.

What do you think about this ? Thank a lot!