-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- if doc is empty, don't display content fix #463
- Loading branch information
1 parent
ae4bc8e
commit 59084ff
Showing
4 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.5.1.012 | ||
Version: 0.5.1.013 | ||
Authors@R: c( | ||
person("David", "Gohel", role = c("aut", "cre"), | ||
email = "[email protected]"), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,9 +144,13 @@ print.rdocx <- function(x, target = NULL, ...){ | |
names(style_sample) <- style_names$style_name | ||
print(style_sample) | ||
|
||
cursor_elt <- docx_current_block_xml(x) | ||
cat("\n* Content at cursor location:\n") | ||
print(node_content(cursor_elt, x)) | ||
if (length(read_docx()) > 1) { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
hongyuanjia
Contributor
|
||
cursor_elt <- docx_current_block_xml(x) | ||
cat("\n* Content at cursor location:\n") | ||
print(node_content(cursor_elt, x)) | ||
} else { | ||
cat("\n* empty document\n") | ||
} | ||
return(invisible()) | ||
} | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Hi, isn't this will force parsing the template docx every time
print
is called?