parent
6f6a399597
commit
147bebfa7f
|
@ -246,6 +246,8 @@ impl FromStr for XMLElement {
|
|||
"bottom" => Ok(XMLElement::Bottom),
|
||||
"insideH" => Ok(XMLElement::InsideH),
|
||||
"insideV" => Ok(XMLElement::InsideV),
|
||||
"tl2br" => Ok(XMLElement::Tl2br),
|
||||
"tr2bl" => Ok(XMLElement::Tr2bl),
|
||||
"tblCellMar" => Ok(XMLElement::TableCellMargin),
|
||||
"tblGrid" => Ok(XMLElement::TableGrid),
|
||||
"tblPrChange" => Ok(XMLElement::TablePropertyChange),
|
||||
|
|
|
@ -20,7 +20,7 @@ export type RunPropertyJSON = {
|
|||
italicCs: boolean | null;
|
||||
vanish: boolean | null;
|
||||
spacing: number | null;
|
||||
TextBorder: TextBorderJSON | null;
|
||||
textBorder: TextBorderJSON | null;
|
||||
};
|
||||
|
||||
export type RunChildJSON =
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "docx-wasm",
|
||||
"version": "0.0.171",
|
||||
"version": "0.0.173",
|
||||
"main": "dist/node/index.js",
|
||||
"browser": "dist/web/index.js",
|
||||
"author": "bokuweb <bokuweb12@gmail.com>",
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -15,6 +15,13 @@ describe("reader", () => {
|
|||
expect(json).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test("should read tr2bl docx", () => {
|
||||
const buffer = readFileSync("../fixtures/tr2bl/tr2bl.docx");
|
||||
const json = w.readDocx(buffer);
|
||||
writeFileSync("../output/tr2bl.json", JSON.stringify(json, null, 2));
|
||||
expect(json).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test("should read table style docx", () => {
|
||||
const buffer = readFileSync("../fixtures/table_style/table_style.docx");
|
||||
const json = w.readDocx(buffer);
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue