diff options
author | Stephen Warren <swarren@nvidia.com> | 2017-09-18 11:50:47 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-09-29 14:07:53 -0400 |
commit | 117eeb7f84176268c086db7764778d99d832cd71 (patch) | |
tree | 57d64821b98f4b1e32b2e88b434a7f78c8cfaa3c /test/py | |
parent | 2d26bf6c26b2507fb597b7d265efe7d61cb2d6b2 (diff) |
test/py: fix anchors in HTML status report
The current code wraps a pre tag inside an a tag. For some reason, this
causes at least Firefox to attempt to drag the pre section content when
using a mouse drag to select text. Re-order the tags so that the text can
be selected using the mouse, at least if you start the drag outside the
text (after the end of the line, for example).
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'test/py')
-rw-r--r-- | test/py/multiplexed_log.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/py/multiplexed_log.py b/test/py/multiplexed_log.py index bf926c3e77..5bc1bc49d4 100644 --- a/test/py/multiplexed_log.py +++ b/test/py/multiplexed_log.py @@ -365,13 +365,13 @@ $(document).ready(function () { self._terminate_stream() self.f.write('<div class="' + note_type + '">\n') - if anchor: - self.f.write('<a href="#%s">\n' % anchor) self.f.write('<pre>') + if anchor: + self.f.write('<a href="#%s">' % anchor) self.f.write(self._escape(msg)) - self.f.write('\n</pre>\n') if anchor: - self.f.write('</a>\n') + self.f.write('</a>') + self.f.write('\n</pre>\n') self.f.write('</div>\n') def start_section(self, marker, anchor=None): |