Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust heuristics for using raw literals (#48)
Rather than searching for escape sequences, a better measure of whether to use raw literals or not is whether the raw literal form is shorter than the quoted string encoding. The assumption is that shorter string length is more readable, which is a reasonable (except for non-printable characters).
- Loading branch information