From 764348be79cc2e8521af073785fb6d4a89add7de Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 12 Jun 2025 19:53:07 +0200 Subject: [PATCH] Trim section title and newlines from manual sections. --- profiler/src/profiler/TracyLlmTools.cpp | 56 +++++++++++++++---------- 1 file changed, 33 insertions(+), 23 deletions(-) diff --git a/profiler/src/profiler/TracyLlmTools.cpp b/profiler/src/profiler/TracyLlmTools.cpp index b5f59aef..f643fd4d 100644 --- a/profiler/src/profiler/TracyLlmTools.cpp +++ b/profiler/src/profiler/TracyLlmTools.cpp @@ -113,30 +113,40 @@ TracyLlmTools::TracyLlmTools() { if( manualChunkPos != pos ) { - std::string text, section, title, parents; - text = std::string( manual.data() + manualChunkPos, pos - manualChunkPos ); - if( levels[0] != 0 ) - { - section = std::to_string( levels[0] ); - for( size_t i=1; i start ) + { + std::string text, section, title, parents; + text = std::string( manual.data() + start, end - start ); + if( levels[0] != 0 ) + { + section = std::to_string( levels[0] ); + for( size_t i=1; i