diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-11-19 20:02:19 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-11-19 20:02:19 +0000 |
| commit | dbc3dac871616c8549cc3ddce01cd0e98f83c1f6 (patch) | |
| tree | 471ff3ef5ad09bd9b04f24068a842c75cd278bd1 /README.md | |
| parent | 6b6163f5aebd604e76add5e383f91453f906d3f7 (diff) | |
Include embedded style map when explicit style map is set
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -270,6 +270,11 @@ Converts the source document to HTML. * `style_map`: a string to specify the mapping of Word styles to HTML. See the section "Writing style maps" for a description of the syntax. +* `include_embedded_style_map`: by default, + if the document contains an embedded style, then it is combined with the default style map. + To ignore any embedded style maps, + pass `include_embedded_style_map=False`. + * `include_default_style_map`: by default, the style map passed in `style_map` is combined with the default style map. To stop using the default style map altogether, pass `include_default_style_map=False`. @@ -316,7 +321,7 @@ Each paragraph is followed by two newlines. Embeds the style map `style_map` into `fileobj`. When Mammoth reads a file object, -it will use the embedded style if no explicit style map is provided. +it will use the embedded style map. * `fileobj`: a file-like object containing the source document. Files should be opened for reading and writing in binary mode. |
