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
'")

krlmlr/styler documentation built on Dec. 12, 2024, 8:36 a.m.