Skip to content

How to reset Style? Weird bug with Style.Empty #548

@nau

Description

@nau

I pretty print my Doc using .style(Style.XTerm.Fg.colorCode(..) to show it in a terminal.
Now I want to render it to a file without styles.
How to property do that?

I tried pretty.style(Style.Empty).render(100) but this results in NPE.
println(Style.Empty.start) outputs null for some weird reason.
Scala 3.3.0, paiges 0.4.2, OpenJDK 11.0.15.

Any ideas?

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