Skip to content

Commit

Permalink
Disable indentation-preserving unparsing
Browse files Browse the repository at this point in the history
Numerous bugs have popped up. This reverts to the old code. Adeel
will add support to switch the indentation-preserving unparsing on
a configuration flag in OMEdit.
  • Loading branch information
sjoelund committed Feb 1, 2016
1 parent 91bfead commit ee4e7b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OMEdit/OMEditGUI/OMC/OMCProxy.cpp
Expand Up @@ -1604,8 +1604,8 @@ QString OMCProxy::diffModelicaFileListings(QString before, QString after)
{
QString escapedBefore = StringHandler::escapeString(before);
QString escapedAfter = StringHandler::escapeString(after);
sendCommand("diffModelicaFileListings(\"" + escapedBefore + "\", \"" + escapedAfter + "\", OpenModelica.Scripting.DiffFormat.plain)");
QString result = StringHandler::unparse(getResult());
// sendCommand("diffModelicaFileListings(\"" + escapedBefore + "\", \"" + escapedAfter + "\", OpenModelica.Scripting.DiffFormat.plain)");
QString result = after; // StringHandler::unparse(getResult());
if (mpMainWindow->isDebug()) {
mpOMCDiffBeforeTextBox->setPlainText(before);
mpOMCDiffAfterTextBox->setPlainText(after);
Expand Down

0 comments on commit ee4e7b6

Please sign in to comment.