Skip to content

Formatted Json in the html report #339

@lirany1

Description

@lirany1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions