Skip to content

Curly braces not properly escaped on pages (e.g. docker, playerctl, fakedata) #10125

Closed
@mrnossiom

Description

@mrnossiom

👋🏻 Hi

Problem

On some pages, we actually need to show parenthesis {{ ... }} like the ones of docker inspect and playerctl for templating.

Docker example
image
where it should be in fact

`docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' {{container}}`

Research

I tried to find a way to escape these, but after some research, I only found someone that tried to escape for fakedata

`echo "{{\{\{Generator\}\}}}" | fakedata`

but it does not actually work
image

I asked on the Matrix chat, but one told me to open an issue here...

Solution

I'll create a PR as soon as I know how to escape the parentheses to fix most of the pages. I think I can find more example of this issue.

PS: I use tldr every day, and it is a great piece of information. Thanks

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