blob: 5020a8780b096c309399cd32b939125f1cf39d1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
var promises = require("../promises");
exports.writeStyleMap = writeStyleMap;
exports.readStyleMap = readStyleMap;
var styleMapPath = "mammoth/style-map";
function writeStyleMap(docxFile, styleMap) {
docxFile.write(styleMapPath, styleMap);
}
function readStyleMap(docxFile) {
if (docxFile.exists(styleMapPath)) {
return docxFile.read(styleMapPath, "utf8");
} else {
return promises.resolve(null);
}
}
|