| Index: tools/gn/standard_out.cc
|
| diff --git a/tools/gn/standard_out.cc b/tools/gn/standard_out.cc
|
| index 1ca74a6089adc3f890fadbd85042467a9038a06d..6d3960e6f4863b418cc333c92fbeb527c9a5511d 100644
|
| --- a/tools/gn/standard_out.cc
|
| +++ b/tools/gn/standard_out.cc
|
| @@ -204,12 +204,10 @@ void PrintShortHelp(const std::string& line) {
|
| void PrintLongHelp(const std::string& text) {
|
| EnsureInitialized();
|
|
|
| - std::vector<std::string> lines;
|
| - base::SplitStringDontTrim(text, '\n', &lines);
|
| -
|
| bool first_header = true;
|
| bool in_body = false;
|
| - for (const auto& line : lines) {
|
| + for (const std::string& line : base::SplitString(
|
| + text, "\n", base::KEEP_WHITESPACE, base::SPLIT_WANT_ALL)) {
|
| // Check for a heading line.
|
| if (!line.empty() && line[0] != ' ') {
|
| if (is_markdown) {
|
|
|