File tree Expand file tree Collapse file tree 4 files changed +22
-4
lines changed
Expand file tree Collapse file tree 4 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " docx-rs"
3- version = " 0.2.3 "
3+ version = " 0.2.5 "
44authors = [" bokuweb <bokuweb12@gmail.com>" ]
55repository = " https://github.com/bokuweb/docx-rs"
66edition = " 2018"
Original file line number Diff line number Diff line change @@ -273,7 +273,25 @@ impl Docx {
273273 TableCellContent :: Paragraph ( paragraph) => {
274274 for child in & paragraph. children {
275275 if let ParagraphChild :: CommentStart ( c) = child {
276+ let comment = c. comment ( ) ;
277+ let para_id = comment. paragraph . id . clone ( ) ;
276278 comments. push ( c. comment ( ) ) ;
279+ let comment_extended =
280+ CommentExtended :: new ( para_id) ;
281+ if let Some ( parent_comment_id) =
282+ comment. parent_comment_id
283+ {
284+ let parent_para_id = comment_map
285+ . get ( & parent_comment_id)
286+ . unwrap ( )
287+ . clone ( ) ;
288+ comments_extended. push (
289+ comment_extended
290+ . parent_paragraph_id ( parent_para_id) ,
291+ ) ;
292+ } else {
293+ comments_extended. push ( comment_extended) ;
294+ }
277295 }
278296 }
279297 }
Original file line number Diff line number Diff line change 11{
22 "name" : " docx-wasm" ,
3- "version" : " 0.0.87 " ,
3+ "version" : " 0.0.90 " ,
44 "main" : " dist/node/index.js" ,
55 "browser" : " dist/web/index.js" ,
66 "author" : " bokuweb <bokuweb12@gmail.com>" ,
You can’t perform that action at this time.
0 commit comments