@@ -208,18 +208,19 @@ namespace cpptrace {
208
208
const auto yellow = color ? YELLOW : " " ;
209
209
const auto blue = color ? BLUE : " " ;
210
210
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) {
213
213
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);
215
215
}
216
216
if (!frame.symbol .empty ()) {
217
- microfmt::print (stream, " in {}{}{}" , yellow, frame.symbol , reset);
217
+ microfmt::print (stream, " in {}{}{}" , yellow, frame.symbol , reset);
218
218
}
219
219
if (!frame.filename .empty ()) {
220
220
microfmt::print (
221
221
stream,
222
- " at {}{}{}" ,
222
+ " {}at {}{}{}" ,
223
+ frame.symbol .empty () ? " " : " " ,
223
224
green,
224
225
options.paths == path_mode::full ? frame.filename : detail::basename (frame.filename , true ),
225
226
reset
0 commit comments