mirror of
https://github.com/progsource/maddy.git
synced 2026-03-26 00:10:37 +01:00
fix: one-liner quote parser does not give any output
This commit is contained in:
@@ -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
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user