Skip to content

\n printing literally #253

Description

@t-kalinowski

Hello,

This is a recent change in behavior.

With an older version of tibble:

tibble(x = "abc\ndef")
# A tibble: 1 x 1
         x
     <chr>
1 abc\ndef

now:

tibble::tibble(x = "abc\ndef")
# A tibble: 1 x 1
        x
    <chr>
1 abc
def

Now that new line characters are printed literally, it throws off the printing of entire tables. eg:

tibble::tibble(x = rep_len("abc\ndef", 10))
# A tibble: 10 x 1
         x
     <chr>
 1 abc
def
 2 abc
def
 3 abc
def
 4 abc
def
 5 abc
def
 6 abc
def
 7 abc
def
 8 abc
def
 9 abc
def
10 abc
def

(sorry, accidentally posted too early with keyboard shortcut earlier)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions