diff options
Diffstat (limited to 'Source/cmRST.cxx')
-rw-r--r-- | Source/cmRST.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmRST.cxx b/Source/cmRST.cxx index da72ab7..14e8ad9 100644 --- a/Source/cmRST.cxx +++ b/Source/cmRST.cxx @@ -490,7 +490,6 @@ void cmRST::UnindentLines(std::vector<std::string>& lines) { ++leadingEmpty; } - lines.erase(lines.begin(), lines.begin()+leadingEmpty); // Drop trailing blank lines. size_t trailingEmpty = 0; @@ -498,5 +497,6 @@ void cmRST::UnindentLines(std::vector<std::string>& lines) { ++trailingEmpty; } + lines.erase(lines.begin(), lines.begin()+leadingEmpty); lines.erase(lines.end()-trailingEmpty, lines.end()); } |