Skip to content

Commit

Permalink
doc fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
brodieG committed Oct 24, 2021
1 parent d21e39f commit 442a232
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
14 changes: 8 additions & 6 deletions R/misc.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ tabs_as_spaces <- function(
#' CSI SGR sequences are displayed as well.
#'
#' You should compare the screen output from this function to
#' `getOption('fansi.term.cap')` to ensure that they are self consistent.
#' `getOption('fansi.term.cap', dflt_term_cap)` to ensure that they are self
#' consistent.
#'
#' By default `fansi` assumes terminals support bright and 256 color
#' modes, and also tests for truecolor support via the $COLORTERM system
Expand All @@ -108,10 +109,10 @@ tabs_as_spaces <- function(
#' Functions with the `term.cap` parameter like `substr_ctl` will warn if they
#' encounter 256 or true color SGR sequences and `term.cap` indicates they are
#' unsupported as such a terminal may misinterpret those sequences. Bright
#' codes in terminals that do not support them are more likely to be silently
#' ignored, so `fansi` functions do not warn about those.
#' codes and OSC encoded URLs in terminals that do not support will likely be
#' silently ignored, so `fansi` functions do not warn about those.
#'
#' @inherit has_ctl seealso
#' @seealso [`dflt_term_cap`], [`has_ctl`].
#' @export
#' @return character the test vector, invisibly
#' @examples
Expand Down Expand Up @@ -228,7 +229,7 @@ html_code_block <- function(x, class='fansi-output') {
#'
#' This is a convenience function designed for use within an `rmarkdown`
#' document. It overrides the `knitr` output hooks by using
#' `knitr::knit_hooks$set`. It replaces the hooks with ones that convert
#' `knitr::knit_hooks$set`. It replaces the hooks with ones that convert
#' _Control Sequences_ into HTML. In addition to replacing the hook functions,
#' this will output a &lt;STYLE&gt; HTML block to stdout. These two actions are
#' side effects as a result of which R chunks in the `rmarkdown` document that
Expand Down Expand Up @@ -298,7 +299,7 @@ html_code_block <- function(x, class='fansi-output') {
#' ## them (alternatively we could have done output as part of this call too)
#'
#' styles <- c(
#' getOption('fansi.style'), # default style
#' getOption('fansi.style', dflt_css()), # default style
#' "PRE.fansi CODE {background-color: transparent;}",
#' "PRE.fansi-error {background-color: #DD5555;}",
#' "PRE.fansi-warning {background-color: #DDDD55;}",
Expand Down Expand Up @@ -520,6 +521,7 @@ fwl <- function(..., end='<END>\033[0m') {
#' inline-block, although that has its own issues. Otherwise specify your own
#' values.
#'
#' @seealso [`term_cap_test`].
#' @export
#' @return character to use as default value for `fansi` parameter.

Expand Down
2 changes: 1 addition & 1 deletion man/set_knit_hooks.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions man/term_cap_test.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 442a232

Please sign in to comment.