parent
d0455d7c08
commit
7e89f9a50e
|
@ -137,7 +137,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "docx-rs"
|
name = "docx-rs"
|
||||||
version = "0.2.8"
|
version = "0.2.9"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"image 0.23.10 (registry+https://github.com/rust-lang/crates.io-index)",
|
"image 0.23.10 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"insta 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"insta 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -154,7 +154,7 @@ dependencies = [
|
||||||
name = "docx-wasm"
|
name = "docx-wasm"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"docx-rs 0.2.8",
|
"docx-rs 0.2.9",
|
||||||
"wasm-bindgen 0.2.53 (registry+https://github.com/rust-lang/crates.io-index)",
|
"wasm-bindgen 0.2.53 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "docx-rs"
|
name = "docx-rs"
|
||||||
version = "0.2.8"
|
version = "0.2.9"
|
||||||
authors = ["bokuweb <bokuweb12@gmail.com>"]
|
authors = ["bokuweb <bokuweb12@gmail.com>"]
|
||||||
repository = "https://github.com/bokuweb/docx-rs"
|
repository = "https://github.com/bokuweb/docx-rs"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
|
@ -102,13 +102,13 @@ mod tests {
|
||||||
str::from_utf8(&b).unwrap(),
|
str::from_utf8(&b).unwrap(),
|
||||||
r#"<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
r#"<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<w:settings xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml"><w:defaultTabStop w:val="709" /><w:zoom w:percent="100" /><w:compat>
|
<w:settings xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml"><w:defaultTabStop w:val="709" /><w:zoom w:percent="100" /><w:compat>
|
||||||
<spaceForUL />
|
<w:spaceForUL />
|
||||||
<balanceSingleByteDoubleByteWidth />
|
<w:balanceSingleByteDoubleByteWidth />
|
||||||
<doNotLeaveBackslashAlone />
|
<w:doNotLeaveBackslashAlone />
|
||||||
<ulTrailSpace />
|
<w:ulTrailSpace />
|
||||||
<doNotExpandShiftReturn />
|
<w:doNotExpandShiftReturn />
|
||||||
<adjustLineHeightInTable />
|
<w:adjustLineHeightInTable />
|
||||||
<useFELayout />
|
<w:useFELayout />
|
||||||
<w:compatSetting w:name="compatibilityMode" w:uri="http://schemas.microsoft.com/office/word" w:val="15" />
|
<w:compatSetting w:name="compatibilityMode" w:uri="http://schemas.microsoft.com/office/word" w:val="15" />
|
||||||
<w:compatSetting w:name="overrideTableStyleFontSizeAndJustification" w:uri="http://schemas.microsoft.com/office/word" w:val="1" />
|
<w:compatSetting w:name="overrideTableStyleFontSizeAndJustification" w:uri="http://schemas.microsoft.com/office/word" w:val="1" />
|
||||||
<w:compatSetting w:name="enableOpenTypeFeatures" w:uri="http://schemas.microsoft.com/office/word" w:val="1" />
|
<w:compatSetting w:name="enableOpenTypeFeatures" w:uri="http://schemas.microsoft.com/office/word" w:val="1" />
|
||||||
|
|
|
@ -258,16 +258,16 @@ impl XMLBuilder {
|
||||||
|
|
||||||
// compat
|
// compat
|
||||||
open!(open_compat, "w:compat");
|
open!(open_compat, "w:compat");
|
||||||
closed!(space_for_ul, "spaceForUL");
|
closed!(space_for_ul, "w:spaceForUL");
|
||||||
closed!(
|
closed!(
|
||||||
balance_single_byte_double_byte_width,
|
balance_single_byte_double_byte_width,
|
||||||
"balanceSingleByteDoubleByteWidth"
|
"w:balanceSingleByteDoubleByteWidth"
|
||||||
);
|
);
|
||||||
closed!(do_not_leave_backslash_alone, "doNotLeaveBackslashAlone");
|
closed!(do_not_leave_backslash_alone, "w:doNotLeaveBackslashAlone");
|
||||||
closed!(ul_trail_space, "ulTrailSpace");
|
closed!(ul_trail_space, "w:ulTrailSpace");
|
||||||
closed!(do_not_expand_shift_return, "doNotExpandShiftReturn");
|
closed!(do_not_expand_shift_return, "w:doNotExpandShiftReturn");
|
||||||
closed!(adjust_line_height_table, "adjustLineHeightInTable");
|
closed!(adjust_line_height_table, "w:adjustLineHeightInTable");
|
||||||
closed!(use_fe_layout, "useFELayout");
|
closed!(use_fe_layout, "w:useFELayout");
|
||||||
closed!(
|
closed!(
|
||||||
compat_setting,
|
compat_setting,
|
||||||
"w:compatSetting",
|
"w:compatSetting",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "docx-wasm",
|
"name": "docx-wasm",
|
||||||
"version": "0.0.107",
|
"version": "0.0.108",
|
||||||
"main": "dist/node/index.js",
|
"main": "dist/node/index.js",
|
||||||
"browser": "dist/web/index.js",
|
"browser": "dist/web/index.js",
|
||||||
"author": "bokuweb <bokuweb12@gmail.com>",
|
"author": "bokuweb <bokuweb12@gmail.com>",
|
||||||
|
|
Loading…
Reference in New Issue