* Display a human-readable version of this Diff. * @return text version */
| 62 | * @return text version |
| 63 | */ |
| 64 | QString Diff::toString() const { |
| 65 | QString prettyText = text; |
| 66 | // Replace linebreaks with Pilcrow signs. |
| 67 | prettyText.replace('\n', L'\u00b6'); |
| 68 | return QString("Diff(") + strOperation(operation) + QString(",\"") |
| 69 | + prettyText + QString("\")"); |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * Is this Diff equivalent to another Diff? |
no test coverage detected