diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-06-08 22:36:49 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-06-08 22:36:49 +0100 |
| commit | a7a931010a2fc0532b17e807c36a543b53e87555 (patch) | |
| tree | fc4cb262b05b499ec81d8a028f9eda4b6f5e85d3 /mammoth | |
| parent | 6eb4446a0e8d035366805f30f268a8120d7d8290 (diff) | |
Use style name in unrecognised styles warning
Diffstat (limited to 'mammoth')
| -rw-r--r-- | mammoth/conversion.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mammoth/conversion.py b/mammoth/conversion.py index 6c13225..a21a264 100644 --- a/mammoth/conversion.py +++ b/mammoth/conversion.py @@ -105,7 +105,10 @@ class DocumentConverter(object): return style.html_path if element.style_id is not None: - self.messages.append(results.warning("Unrecognised {0} style: {1}".format(element_type, element.style_id))) + self.messages.append(results.warning( + "Unrecognised {0} style: {1} (Style ID: {2})".format( + element_type, element.style_name, element.style_id) + )) return default |
