Reindent code by removing the common leading spaces and adding the specified indent.
Declared in <mrdocs/Support/String/String.hpp>
std::string
reindentCode(
std::string_view code,
std::size_t indent = 0);
The modified code block.
| Name | Description |
|---|---|
| code | The code block to unindent. |
| indent | The number of spaces to insert in front of each line after trimming. |