mirror of
https://github.com/reactos/CMake.git
synced 2024-12-03 17:11:04 +00:00
ENH: Improved formatting of plain-text help to add a blank line before the beginning of a preformatted section.
This commit is contained in:
parent
0005e70c05
commit
dec0b51066
@ -384,16 +384,20 @@ void cmDocumentation::PrintColumn(std::ostream& os, int width,
|
||||
}
|
||||
else
|
||||
{
|
||||
// If this is the first line not beginning in a blank after
|
||||
// a sequence of lines beginning in blanks, add an extra
|
||||
// If we are switching from a line that has leading blanks
|
||||
// to a line that does not, or vice versa, add an extra
|
||||
// newline.
|
||||
if(blanks)
|
||||
{
|
||||
if(!lastHadBlanks && !firstLine)
|
||||
{
|
||||
os << "\n";
|
||||
}
|
||||
lastHadBlanks = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(lastHadBlanks)
|
||||
if(lastHadBlanks && !firstLine)
|
||||
{
|
||||
os << "\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user