Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug - [CodeBlock ] - [eats up quotation marks and symbols between them] #10124

Closed
Fewwy opened this issue Mar 4, 2024 · 0 comments · Fixed by #10307
Closed

Bug - [CodeBlock ] - [eats up quotation marks and symbols between them] #10124

Fewwy opened this issue Mar 4, 2024 · 0 comments · Fixed by #10307
Assignees
Milestone

Comments

@Fewwy
Copy link

Fewwy commented Mar 4, 2024

Describe the problem
CodeBlock component
Backend developers requested to add this piece of code exactly how it looks to the UI. Component removes "\t" and "\n" inside the curly braces

<CodeBlock>
                  {`oc get namespace -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.metadata.uid}{"\n"}{end}'`}
                  <Divider />
                  {`oc -n <namespace> get <resourceKind> -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.metadata.uid}{"\n"}{end}'`}
                </CodeBlock>

CodeBlockCode component do not work as well

                  <CodeBlockCode>
                    {`oc get namespace -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.metadata.uid}{"\n"}{end}'`}
                    {`oc -n <namespace> get <resourceKind> -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.metadata.uid}{"\n"}{end}'`}
                  </CodeBlockCode>
                </CodeBlock>

How do you reproduce the problem?
Copy the piece of code I provided and try it.

Expected behavior
Code block shouldn't remove a piece of code

Is this issue blocking you?
Yes

Screenshots
If applicable, add screenshots to help explain the issue.
Example of the issue
image

With CodeBlockCode component
image

What is your environment?

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

What is your product and what release date are you targeting?

Any other information?

@Fewwy Fewwy added the bug label Mar 4, 2024
@github-project-automation github-project-automation bot moved this to Needs triage in PatternFly Issues Mar 4, 2024
@srambach srambach moved this from Needs triage to Backlog in PatternFly Issues Mar 22, 2024
@srambach srambach added this to the Prioritized Backlog milestone Mar 22, 2024
@adamviktora adamviktora self-assigned this Apr 22, 2024
@adamviktora adamviktora moved this from Backlog to In Progress in PatternFly Issues Apr 22, 2024
@adamviktora adamviktora moved this from In Progress to PR Review in PatternFly Issues Apr 29, 2024
@tlabaj tlabaj modified the milestones: Prioritized Backlog, 2024.Q2 May 8, 2024
@github-project-automation github-project-automation bot moved this from PR Review to Done in PatternFly Issues May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants