Skip to content

Commit

Permalink
fix expansion of '=' to ' = '
Browse files Browse the repository at this point in the history
considers also ':=', '<=' and '>='.
  • Loading branch information
hkiel committed May 19, 2017
1 parent dada301 commit a884b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMNotebook/OMNotebookGUI/indent.cpp
Expand Up @@ -368,7 +368,7 @@ QString Indent::indentedText(QMap<int, IndentationState*>* states)
{
buffer1 = buffer1.replace('\n', " <newLine> ") + " <newLine> " + " <newLine> ";
buffer1 = buffer1.replace("//", " //");
buffer1 = buffer1.replace("=", " = ");
buffer1 = buffer1.replace(QRegExp("(==|:=|<=|>=|=)"), " \\1 ");
QTextStream ts(&buffer1, QIODevice::ReadWrite);

//QString current, next, comment;
Expand Down

0 comments on commit a884b96

Please sign in to comment.