Merge "Add style to wrap pre tag"

This commit is contained in:
Jenkins 2015-12-07 18:53:25 +00:00 committed by Gerrit Code Review
commit 590f7e4d69
2 changed files with 16 additions and 4 deletions

View File

@ -1,5 +1,6 @@
{% load i18n %}
<pre class="data">
{{ namespace_contents }}
</pre>
<div class="pre_scrollable">
<pre class="data">{{ namespace_contents }}</pre>
</div>

View File

@ -4,4 +4,15 @@
.horizontal-center {
float: none;
margin: 0 auto;
}
}
// Used to x-scroll to Pre-formatted text.
.pre_scrollable {
display: table;
table-layout: fixed;
width: 100%;
pre {
word-wrap: normal;
}
}