refactor: Move all processing logic to CodeHandler::processText() (#107)

This will become useful once more processing modes are available
This commit is contained in:
Povilas Kanapickas
2025-03-06 19:49:28 +02:00
committed by GitHub
parent 5536de146c
commit 521261e0a3
4 changed files with 18 additions and 7 deletions

View File

@ -22,8 +22,12 @@
namespace QodeAssist {
QString CodeHandler::processText(QString text)
QString CodeHandler::processText(QString text, bool smartProcess)
{
if (!smartProcess) {
return text;
}
QString result;
QStringList lines = text.split('\n');
bool inCodeBlock = false;