Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

LogViewer is not maintaining indentation/removing spacing which is prefix to the log data

Aberta
#77 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
45/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
typescript
Domínio
frontend

Direção de pesquisa

Start by reproducing the issue in LogViewer using the attached Pod log and compare the displayed output with the file contents. Trace how log text is rendered and identify where leading whitespace is removed; done means preserving intentional indentation and spacing in strings and objects.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

I have the below log downloaded from Pod logs and in the log file, there are spaces infront of strings "hello" and "hello1" and there is spacing in front of a,b and c in the object which is present in log

hello-goodbye-iu8saw-goodbye-pod-step-goodbye.log

In the below attached LogViewer we can see the above mentioned spaces are removed. If there are any objects in logs or if user intentionally added spacing infront of logs, those spacings are removed.

Screenshot 2024-09-04 at 6 46 55 PM
Linguagem predominante
TypeScript
Estrelas
34
Forks
19
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de patternfly/react-log-viewer

Todas as issues de patternfly/react-log-viewer

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.