Skip to content

Commit

Permalink
Merge pull request #764 from mitre/fixFormatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Clark authored Jan 14, 2021
2 parents 57206db + 6e6346c commit 6fde6b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<v-divider />
<!-- HTML is sanitized with sanitize-html -->
<!-- eslint-disable vue/no-v-html -->
<pre
class="pa-2 mono text-justify"
<div
class="pa-2 mono pre-formatted"
v-html="sanitize_html(result.code_desc.trim())"
/>
<!-- eslint-enable vue/no-v-html -->
Expand All @@ -34,7 +34,7 @@
<v-divider />
<!-- eslint-disable vue/no-v-html -->
<div
class="pa-2 mono text-justify"
class="pa-2 mono pre-formatted"
v-html="sanitize_html(result.message.trim())"
/>
<!-- eslint-enable vue/no-v-html -->
Expand Down Expand Up @@ -71,4 +71,8 @@ export default class ControlRowCol extends mixins(HtmlSanitizeMixin) {
button.unclickable-button {
pointer-events: none;
}
.pre-formatted {
white-space: pre-wrap;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@
<v-col cols="12" :class="detail.class">
<h3>{{ detail.name }}:</h3>
<!-- eslint-disable vue/no-v-html -->
<h4
class="mono preserve-whitespace"
v-html="sanitize_html(detail.value)"
/>
<h4 class="mono" v-html="sanitize_html(detail.value)" />
<!-- eslint-enable vue/no-v-html -->
</v-col>
<v-divider />
Expand Down

0 comments on commit 6fde6b5

Please sign in to comment.