equal
deleted
inserted
replaced
1 from pandoc_converters import pandoc_convert |
1 from pandoc_converters import pandoc_convert |
2 import chardet |
2 import chardet |
3 from cm.utils.string import to_unicode |
3 from cm.utils.string_utils import to_unicode |
4 import re |
4 import re |
5 |
5 |
6 # TODO: move that in text_base: save images |
6 # TODO: move that in text_base: save images |
7 def convert_from_mimetype(file_name, mime_type, format): |
7 def convert_from_mimetype(file_name, mime_type, format): |
8 input = open(file_name, 'r').read() |
8 input = open(file_name, 'r').read() |