Skip to content

Newlines in title display differently in PrettyTables v2 vs v3 #268

@GregPlowman

Description

@GregPlowman

Newlines in title display differently in PrettyTables v2 vs v3.

Not really a big issue for me, but thought I'd raise the issue. Happy for you to disregard and close.

using Pkg
Pkg.activate(; temp=true)
Pkg.add(name="PrettyTables", version="2")
using PrettyTables

t = 1:3
data = hcat(t, t.*t)

pretty_table(
     data;
     title = string("\n", "Title 1", "\n", "Title 2", "\n", "Title 3", "\n")
)

Version 2:

Title 1
Title 2
Title 3

Version 3:

\nTitle 1\nTitle 2\nTitle 3\n

Windows 11
Julia v1.11.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions