| 260 | } |
| 261 | |
| 262 | QByteArray SExpression::toByteArray(Mode mode) const { |
| 263 | QString str = toString(0, mode); // can throw |
| 264 | if (!str.endsWith('\n')) { |
| 265 | str += '\n'; // newline at end of file |
| 266 | } |
| 267 | return str.toUtf8(); |
| 268 | } |
| 269 | |
| 270 | /******************************************************************************* |
| 271 | * Operator Overloadings |
no test coverage detected