Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

Commit

Permalink
use QString builtin simplified() function
Browse files Browse the repository at this point in the history
  • Loading branch information
librehat committed Jan 25, 2015
1 parent 8d9f52c commit aba799a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lingoes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ QString Lingoes::strip(const QString &xml)
open = xml.indexOf('<', open + 1);
end = xml.indexOf('>', end + 1);
} while ((open != -1) && (end != -1));
return sb.replace('\t', ' ').replace('\n', ' ').replace('\u001e', ' ').replace('\u001f', ' ');
return sb.simplified();
}
return QString();
}
Expand Down

0 comments on commit aba799a

Please sign in to comment.