Skip to content

Commit

Permalink
look for so header in all lines, not just first
Browse files Browse the repository at this point in the history
  • Loading branch information
crew102 committed Aug 31, 2018
1 parent bc66e15 commit 5830aa3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions R/reprex-undo.R
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,5 @@ classify_lines <- function(x, comment = "^#>") {
wut <- ifelse(wut == "code" & grepl(comment, x), "output", wut)

so_special <- "<!-- language-all: lang-r -->"
if (identical(x[1], so_special)) {
wut[1] <- "so_header"
}

wut
ifelse(x == so_special, "so_header", wut)
}

0 comments on commit 5830aa3

Please sign in to comment.