Skip to content

Commit

Permalink
#46 Fixed alignment truncation problem
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianPanov committed Dec 2, 2024
1 parent 637f0b0 commit bfa7136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lwlog/src/details/pattern/alignment_formatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace lwlog::details
const std::size_t flag_end_pos { pattern.find(alignment_info::flag_end, flag_pos + flag_size) };
const std::size_t to_align_size { flag_end_pos - flag_pos - flag_size };

const std::string_view aligned{ alignment_formatter::align(
const auto aligned{ alignment_formatter::align(
pattern.substr(flag_pos + flag_size, to_align_size),
alignment_flag_info.width,
alignment_flag_info.fill_char,
Expand Down

0 comments on commit bfa7136

Please sign in to comment.