Having spoken with HMRC today, it appears that I use losses carried forward to write down the profit up to the full amount of profit. Any remaining losses are brought forward to next year, but this can't be entered on the online form and so it has to be put in the free-form text box.

This...