You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i'm playing a bit with your gem to parse and update some opf file (~epub metadata file) and i found that using Ox.dump does not preserve xml declaration.
To be honest i feel like it's probably on purpose but even after reading the documention i can't find how to preserve it. It's pretty important to me because my workflow is to Ox.load my file, modifing some nodes data using Element#replace_text and finally replace the orginal file by the result of Ox.dump but of course i'm now missing the declaration line.
Any idea how i can do it ?
Thanks for your open source work !
In case this is true bug and not on purpose here is a minimal reproduction :
Hi, i'm playing a bit with your gem to parse and update some opf file (~epub metadata file) and i found that using
Ox.dump
does not preserve xml declaration.To be honest i feel like it's probably on purpose but even after reading the documention i can't find how to preserve it. It's pretty important to me because my workflow is to
Ox.load
my file, modifing some nodes data usingElement#replace_text
and finally replace the orginal file by the result ofOx.dump
but of course i'm now missing the declaration line.Any idea how i can do it ?
Thanks for your open source work !
In case this is true bug and not on purpose here is a minimal reproduction :
ox (2.14.18)
The text was updated successfully, but these errors were encountered: