Skip to content
Snippets Groups Projects
Commit 117eeb7f authored by Stephen Warren's avatar Stephen Warren Committed by Tom Rini
Browse files

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: default avatarStephen Warren <swarren@nvidia.com>
parent 2d26bf6c
No related branches found
No related tags found
No related merge requests found
...@@ -365,13 +365,13 @@ $(document).ready(function () { ...@@ -365,13 +365,13 @@ $(document).ready(function () {
self._terminate_stream() self._terminate_stream()
self.f.write('<div class="' + note_type + '">\n') self.f.write('<div class="' + note_type + '">\n')
if anchor:
self.f.write('<a href="#%s">\n' % anchor)
self.f.write('<pre>') self.f.write('<pre>')
if anchor:
self.f.write('<a href="#%s">' % anchor)
self.f.write(self._escape(msg)) self.f.write(self._escape(msg))
self.f.write('\n</pre>\n')
if anchor: if anchor:
self.f.write('</a>\n') self.f.write('</a>')
self.f.write('\n</pre>\n')
self.f.write('</div>\n') self.f.write('</div>\n')
def start_section(self, marker, anchor=None): def start_section(self, marker, anchor=None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment