Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
tweak the comment
  • Loading branch information
shrektan committed Oct 28, 2019
commit cb0539c03007b810b20b526bf85fd5c236436743
4 changes: 2 additions & 2 deletions R/format.R
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ styleEqual = function(levels, values, default = NULL) {
if (!is.null(default) && (!is.character(default) || length(default) != 1))
stop("default must be null or a string")
if (n == 0) return("''")
# because the data will be escaped by escapeData(), we need to compare
# the "escaped value" to the "levels" instead of the raw value
# because the data will be transformed by escapeData(), we need to compare
# the "escaped value" of the "levels" instead of the raw value
if (is.character(levels) || is.factor(levels))
levels = htmlEscape(levels)
levels = jsValues(levels)
Expand Down