]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - test/py/multiplexed_log.py
test/py: fix anchors in HTML status report
[people/ms/u-boot.git] / test / py / multiplexed_log.py
index bf926c3e7762ae37ffc026ebebf58e05641df50a..5bc1bc49d4de2d8f9433507f42bcdfd33a3916a1 100644 (file)
@@ -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):