mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-01-10 01:20:06 +00:00
fix: fmt line num in err msg correctly
This commit is contained in:
parent
8567f09cbf
commit
d3513c0f84
@ -476,8 +476,9 @@ inline std::string format_underline(const std::string& message,
|
||||
const region_base* const reg = iter->first;
|
||||
const std::string& comment = iter->second;
|
||||
|
||||
retval << ' ' << std::setw(line_num_width) << color::bold << color::blue
|
||||
<< reg->line_num() << " | " << color::reset << reg->line() << '\n';
|
||||
retval << ' ' << color::bold << color::blue << std::setw(line_num_width)
|
||||
<< std::right << reg->line_num() << " | " << color::reset
|
||||
<< reg->line() << '\n';
|
||||
|
||||
retval << make_string(static_cast<std::size_t>(line_num_width + 1), ' ')
|
||||
<< color::bold << color::blue << " | " << color::reset
|
||||
|
Loading…
Reference in New Issue
Block a user