@@ -208,18 +208,19 @@ namespace cpptrace {
208208 const auto yellow = color ? YELLOW : " " ;
209209 const auto blue = color ? BLUE : " " ;
210210 if (frame.is_inline ) {
211- microfmt::print (stream, " {<{}}" , 2 * sizeof (frame_ptr) + 2 , " (inlined)" );
212- } else {
211+ microfmt::print (stream, " {<{}} " , 2 * sizeof (frame_ptr) + 2 , " (inlined)" );
212+ } else if (options. addresses != address_mode::none) {
213213 auto address = options.addresses == address_mode::raw ? frame.raw_address : frame.object_address ;
214- microfmt::print (stream, " {}0x{>{}:0h}{}" , blue, 2 * sizeof (frame_ptr), address, reset);
214+ microfmt::print (stream, " {}0x{>{}:0h}{} " , blue, 2 * sizeof (frame_ptr), address, reset);
215215 }
216216 if (!frame.symbol .empty ()) {
217- microfmt::print (stream, " in {}{}{}" , yellow, frame.symbol , reset);
217+ microfmt::print (stream, " in {}{}{}" , yellow, frame.symbol , reset);
218218 }
219219 if (!frame.filename .empty ()) {
220220 microfmt::print (
221221 stream,
222- " at {}{}{}" ,
222+ " {}at {}{}{}" ,
223+ frame.symbol .empty () ? " " : " " ,
223224 green,
224225 options.paths == path_mode::full ? frame.filename : detail::basename (frame.filename , true ),
225226 reset
0 commit comments