diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-01-25 17:06:54 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-01-25 17:06:54 +0000 |
| commit | 1483a864719cedabc0d6c6bcd98e0b2d9d3ce0c1 (patch) | |
| tree | 8f5db7dde7d0f1952890f5ba97af7c958c212d13 /mammoth/__init__.py | |
| parent | abdcd67365d663c878fd370cb97e77ce74c2b1a7 (diff) | |
Use prefix to generate IDs
Diffstat (limited to 'mammoth/__init__.py')
| -rw-r--r-- | mammoth/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mammoth/__init__.py b/mammoth/__init__.py index b0ffa12..c7b305d 100644 --- a/mammoth/__init__.py +++ b/mammoth/__init__.py @@ -3,13 +3,13 @@ from . import docx, conversion, options, documents, images, underline __all__ = ["convert_to_html", "extract_raw_text", "images", "underline"] -def convert_to_html(fileobj, transform_document=None, generate_uniquifier=None, **kwargs): +def convert_to_html(fileobj, transform_document=None, id_prefix=None, **kwargs): if transform_document is None: transform_document = lambda x: x return docx.read(fileobj).map(transform_document).bind(lambda document: conversion.convert_document_element_to_html( document, - generate_uniquifier=generate_uniquifier, + id_prefix=id_prefix, **options.read_options(kwargs) ) ) |
