Skip to content

Commit

Permalink
fix: support for a new invalid document coming from non MS source
Browse files Browse the repository at this point in the history
fix #522
  • Loading branch information
davidgohel committed Oct 22, 2023
1 parent 713756f commit 9241ade
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: officer
Type: Package
Title: Manipulation of Microsoft Word and PowerPoint Documents
Version: 0.6.3.004
Version: 0.6.3.005
Authors@R: c(
person("David", "Gohel", role = c("aut", "cre"),
email = "david.gohel@ardata.fr"),
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- new function `run_comment()` to create a run with a comment.
- new function `docx_comments()` to read comments in a Word document as a data.frame.
- Add pptx support for invalid pptx files downloaded from https://slides.new.

## Issues

Expand Down
1 change: 1 addition & 0 deletions R/core_properties.R
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ write_core_properties <- function(core_matrix, package_dir){

drop_templatenode_from_app <- function(package_dir){
file <- file.path(package_dir, "docProps", "app.xml")
if (!file.exists(file)) return()
doc <- read_xml(file)
node_template <- xml_child(doc, "d1:Template")
if (!inherits(node_template, "xml_missing")) {
Expand Down

0 comments on commit 9241ade

Please sign in to comment.