aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/bookmaker/bookmaker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/bookmaker/bookmaker.cpp')
-rw-r--r--tools/bookmaker/bookmaker.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/bookmaker/bookmaker.cpp b/tools/bookmaker/bookmaker.cpp
index 794e2007e8..947c0770e3 100644
--- a/tools/bookmaker/bookmaker.cpp
+++ b/tools/bookmaker/bookmaker.cpp
@@ -1323,6 +1323,7 @@ bool BmhParser::findDefinitions() {
if (!this->skipSpace()) {
return this->reportError<bool>("unexpected end");
}
+ lineStart = '\n' == this->peek();
bool expectEnd = true;
vector<string> typeNameBuilder = this->typeName(markType, &expectEnd);
if (fCloned && MarkType::kMethod != markType && MarkType::kExample != markType
@@ -1448,9 +1449,11 @@ bool BmhParser::findDefinitions() {
}
}
char nextChar = this->next();
- lineStart = nextChar == '\n';
if (' ' < nextChar) {
lastChar = fChar;
+ lineStart = false;
+ } else if (nextChar == '\n') {
+ lineStart = true;
}
}
if (fParent) {