Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
inkhey committed Nov 16, 2021
1 parent 1f330f5 commit 13f2620
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ supported by preview generator, you should:
- check if the mimetype of the format you are using is handled by preview_generator mimetype_storage (python console):

.. code:: python
from preview_generator.extension import mimetypes_storage
mimetypes_storage.guess_all_extensions('application/vnd.openxmlformats-officedocument.wordprocessingml.document')
['.docx']
Expand All @@ -482,6 +483,7 @@ supported by preview generator, you should:
In case you don't get proper result for your file_extension/mimetype, you can work around the issue this way:

.. code:: python
from preview_generator.extension import mimetypes_storage
mimetypes_storage.add_type(
'application/vnd.openxmlformats-officedocument.wordprocessingml.document', '.docx')
Expand Down

0 comments on commit 13f2620

Please sign in to comment.