Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix etree to string conversion in FeedGenerator
When converting `feed` object to a string, using `atom_str` or `rss_str` methods, with `etree.tostring` method, `feed` instead of `doc` is supplied. In this case, changes applied outside the <rss> was lost (e.g., adding a processing instruction `<?xml-stylesheet href="rss.xsl" type="text/xsl"?>` as sibling to <rss>). The `feed` object has now been replaced by the `doc` object in both the `_create_atom` and `_create_rss` methods, ensuring the correct conversion and preventing possible lost of information in the feed generation.
- Loading branch information