Fix prefix wrapping again

nowrap is not enough because it still breaks on hyphens sometimes. But
since we're using pre now, we need to make sure no whitespace/newline is
around each <span> because they will be outputted.
This commit is contained in:
Philippe Proulx 2013-10-17 13:29:37 -04:00 committed by Vivien Didelot
parent fba78d490e
commit 6b8f5b5a0f
2 changed files with 2 additions and 4 deletions

View file

@ -53,7 +53,7 @@ td.prefix {
text-align: right;
vertical-align: top;
padding-right: 5px;
white-space: nowrap;
white-space: pre;
}
td.message {
word-wrap: break-word;

View file

@ -191,9 +191,7 @@
{{ bufferline.date | date:'HH:mm' }}
</span>
</td>
<td class="prefix vertical-line">
<span ng-repeat="part in bufferline.prefix" class="text" style="{{ part.fg }}">{{ part.text }}</span>
</td>
<td class="prefix vertical-line"><span ng-repeat="part in bufferline.prefix" style="{{ part.fg }}">{{ part.text }}</span></td>
<td class="message">
<span ng-repeat="part in bufferline.content" class="text" style="{{ part.fg }}" ng-bind-html="part.text"></span>