Release 1.7: fix bug in XMP generation

This commit is contained in:
Alexis de Lattre 2020-01-13 00:58:30 +01:00
parent 12f97b685d
commit d5b22cd32f
3 changed files with 6 additions and 2 deletions

View File

@ -65,6 +65,10 @@ Contributors
Changelog
=========
* Version 1.7 dated 2020-01-13
* Fix bug in release 1.6 in XMP: variables were not replaced by their real value
* Version 1.6 dated 2020-01-09
* Generate XMP (XML-based PDF metadata) via string replacement instead of using XML lib

View File

@ -1 +1 @@
__version__ = '1.6'
__version__ = '1.7'

View File

@ -412,7 +412,7 @@ def _prepare_pdf_metadata_xml(facturx_level, pdf_metadata):
</x:xmpmeta>
<?xpacket end="w"?>
"""
xml_str.format(
xml_str = xml_str.format(
title=pdf_metadata.get('title', ''),
author=pdf_metadata.get('author', ''),
subject=pdf_metadata.get('subject', ''),