From 56a1a81a38861636379446eeeb7df4fca0b5116d Mon Sep 17 00:00:00 2001 From: Montgomery Date: Wed, 8 Apr 2026 12:49:51 +0100 Subject: [PATCH] Fix output of filename when outputting docs with the -in-source-order option. --- src/docs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs.cpp b/src/docs.cpp index de7bdafd1..1d8886edb 100644 --- a/src/docs.cpp +++ b/src/docs.cpp @@ -289,7 +289,7 @@ gb_internal void print_doc_package(CheckerInfo *info, AstPackage *pkg) { } curr_file = e->file; String filename = remove_directory_from_path(curr_file->fullpath); - print_doc_line(1, "file: %s", filename); + print_doc_line(1, "file: %.*s", LIT(filename)); } } else { if (curr_entity_kind != e->kind) {