fix: one-liner quote parser does not give any output

This commit is contained in:
Petra Baranski
2025-10-06 01:08:02 +02:00
parent 07dde0c630
commit ddd965e9fc
3 changed files with 25 additions and 5 deletions

View File

@@ -99,6 +99,8 @@ public:
this->childParser = nullptr;
}
this->finishQuote(finish);
return;
}
@@ -107,11 +109,7 @@ public:
this->parseLine(line);
}
if (finish)
{
this->result << "</blockquote>";
this->isFinished = true;
}
this->finishQuote(finish);
this->result << line;
}
@@ -145,6 +143,15 @@ protected:
private:
bool isStarted;
bool isFinished;
void finishQuote(bool finish)
{
if (finish)
{
this->result << "</blockquote>";
this->isFinished = true;
}
}
}; // class QuoteParser
// -----------------------------------------------------------------------------