| ... | @@ -91,7 +91,7 @@ pub fn fileSourceHtml( | ... | @@ -91,7 +91,7 @@ pub fn fileSourceHtml( |
| 91 | while (true) { | 91 | while (true) { |
| 92 | if (next_annotate_index >= options.source_location_annotations.len) break; | 92 | if (next_annotate_index >= options.source_location_annotations.len) break; |
| 93 | const next_annotation = options.source_location_annotations[next_annotate_index]; | 93 | const next_annotation = options.source_location_annotations[next_annotate_index]; |
| 94 | if (cursor < next_annotation.file_byte_offset) break; | 94 | if (cursor <= next_annotation.file_byte_offset) break; |
| 95 | try out.writer(gpa).print("<span id=\"{s}{d}\"></span>", .{ | 95 | try out.writer(gpa).print("<span id=\"{s}{d}\"></span>", .{ |
| 96 | options.annotation_prefix, next_annotation.dom_id, | 96 | options.annotation_prefix, next_annotation.dom_id, |
| 97 | }); | 97 | }); |