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

Formatted Json in the html report #339

Open
lirany1 opened this issue Feb 24, 2025 · 0 comments
Open

Formatted Json in the html report #339

lirany1 opened this issue Feb 24, 2025 · 0 comments

Comments

@lirany1
Copy link

lirany1 commented Feb 24, 2025

Hi :)
i notice that in this file in version 4.3.1
html-report\4.3.1\themes\default\views\partials.tmpl

the original:

{{define "messageDiv"}}
  {{if .}}
    <div class="message-container">
      <i class="fa fa-minus-square" aria-hidden="true"></i>
      <div class="messages">
        {{range .}}<div class="step-message">{{. | encodeNewLine | parseMarkdown | sanitize}} </div>{{end}}
      </div>
    </div>
  {{end}}
{{end}}

if i remove the sanitize flag

{{define "messageDiv"}}
  {{if .}}
    <div class="message-container">
      <i class="fa fa-minus-square" aria-hidden="true"></i>
      <div class="messages">
        {{range .}}<div class="step-message">{{. | encodeNewLine | parseMarkdown}} </div>{{end}}
      </div>
    </div>
  {{end}}
{{end}}

its formatting the json ok but in origin its take it to the left.

is there any flag that can be supported inside default.properties that can make it work without removing the sanitize flag?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant