summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis de Lattre <alexis.delattre@akretion.com>2020-01-12 23:58:30 (GMT)
committerAlexis de Lattre <alexis.delattre@akretion.com>2020-01-12 23:58:30 (GMT)
commitd5b22cd32f961d001fe63c7a2beb0512c0005fdb (patch)
treeeb5bf2ba208431d1d7e8afb647e4320e531ae305
parent12f97b685de1cf13a6b6ab0dd34bcd771b2b9c6f (diff)
downloadfactur-x-d5b22cd32f961d001fe63c7a2beb0512c0005fdb.zip
factur-x-d5b22cd32f961d001fe63c7a2beb0512c0005fdb.tar.gz
factur-x-d5b22cd32f961d001fe63c7a2beb0512c0005fdb.tar.bz2
Release 1.7: fix bug in XMP generation
-rw-r--r--README.rst4
-rw-r--r--facturx/_version.py2
-rw-r--r--facturx/facturx.py2
3 files changed, 6 insertions, 2 deletions
diff --git a/README.rst b/README.rst
index cf9e4f0..39d485b 100644
--- a/README.rst
+++ b/README.rst
@@ -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
diff --git a/facturx/_version.py b/facturx/_version.py
index 6d5e09d..218f431 100644
--- a/facturx/_version.py
+++ b/facturx/_version.py
@@ -1 +1 @@
-__version__ = '1.6'
+__version__ = '1.7'
diff --git a/facturx/facturx.py b/facturx/facturx.py
index 13ef6db..fb037cd 100644
--- a/facturx/facturx.py
+++ b/facturx/facturx.py
@@ -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', ''),