* fix: ppr reader

* 0.0.231
main
bokuweb 2022-01-19 19:59:18 +09:00 committed by GitHub
parent c89c42dbe2
commit e1bd606480
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 5 deletions

View File

@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## docx-wasm@0.0.231 (19. January, 2022)
- Fixed a pPr reader.
## docx-wasm@0.0.229 (19. January, 2022) ## docx-wasm@0.0.229 (19. January, 2022)
- Fixed a del/ins type in runProperty - Fixed a del/ins type in runProperty

View File

@ -4,7 +4,7 @@ use std::fs::File;
use std::io::{Read, Write}; use std::io::{Read, Write};
pub fn main() { pub fn main() {
let mut file = File::open("./center.docx").unwrap(); let mut file = File::open("./ppr_del.docx").unwrap();
let mut buf = vec![]; let mut buf = vec![];
file.read_to_end(&mut buf).unwrap(); file.read_to_end(&mut buf).unwrap();

View File

@ -93,7 +93,7 @@ impl ElementReader for ParagraphProperty {
p.widow_control = Some(true); p.widow_control = Some(true);
} }
XMLElement::ParagraphPropertyChange => { XMLElement::ParagraphPropertyChange => {
if let Ok(ppr_change) = ParagraphPropertyChange::read(r, attrs) { if let Ok(ppr_change) = ParagraphPropertyChange::read(r, &attributes) {
p.paragraph_property_change = Some(ppr_change); p.paragraph_property_change = Some(ppr_change);
} }
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "docx-wasm", "name": "docx-wasm",
"version": "0.0.230", "version": "0.0.231",
"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>",

View File

@ -13086,8 +13086,8 @@ Object {
"startChars": null, "startChars": null,
}, },
"paragraphPropertyChange": Object { "paragraphPropertyChange": Object {
"author": "unnamed", "author": "bokuweb",
"date": "1970-01-01T00:00:00Z", "date": "2022-01-07T17:20:00Z",
"property": Object { "property": Object {
"alignment": "left", "alignment": "left",
"indent": Object { "indent": Object {