mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 21:30:01 -05:00
cmDocumentationFormatter: Eliminate one if in the PrintColumn loop
This commit is contained in:
@@ -102,13 +102,8 @@ void cmDocumentationFormatter::PrintColumn(std::ostream& os, const char* text)
|
||||
if (column) {
|
||||
// Not first word on line. Separate from the previous word
|
||||
// by a space, or two if this is a new sentence.
|
||||
if (newSentence) {
|
||||
os << " ";
|
||||
column += 2;
|
||||
} else {
|
||||
os << ' ';
|
||||
column += 1;
|
||||
}
|
||||
os << &(" "[std::size_t(!newSentence)]);
|
||||
column += 1u + std::ptrdiff_t(newSentence);
|
||||
} else if (!firstLine && this->TextIndent) {
|
||||
// First word on line. Print indentation unless this is the
|
||||
// first line.
|
||||
|
||||
Reference in New Issue
Block a user