mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
white-space: pre-wrap for table SQL, closes #505
This commit is contained in:
parent
c92349e7ee
commit
08dd0d96ed
2 changed files with 6 additions and 2 deletions
|
|
@ -312,3 +312,7 @@ a.not-underlined {
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pre.wrapped-sql {
|
||||||
|
white-space: pre-wrap;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -184,11 +184,11 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if table_definition %}
|
{% if table_definition %}
|
||||||
<pre>{{ table_definition }}</pre>
|
<pre class="wrapped-sql">{{ table_definition }}</pre>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if view_definition %}
|
{% if view_definition %}
|
||||||
<pre>{{ view_definition }}</pre>
|
<pre class="wrapped-sql">{{ view_definition }}</pre>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue