fix_quotes: Replace single quotes with double quotes

View source: R/rules-tokens.R

fix_quotesR Documentation

Replace single quotes with double quotes

Description

We do not use deparse() as in previous implementations but paste0() since the former approach escapes the reverse backslash in the line break character ⁠\\n⁠ whereas the solution with paste0() does not.

Usage

fix_quotes(pd_flat)

Arguments

pd_flat

A flat parse table.

Examples

style_text("'here
is a string
'")

styler documentation built on Aug. 29, 2023, 5:10 p.m.