Thanks to MoS for the information about not adding onions. As I'd run out of freezer space last year I resorted to bottling one or two things, and pasta sauce was one of them. I did the usual, sterilising the jars and adding the hot sauce, and then I put them into the pressure cooker three or four jars at a time, putting a folded tea towel in the bottom and wrapping all around the jars with a couple more old ones to stop them touching both the bottom and sides of the pressure cooker and each other. I can't remember exactly how long I had them under pressure, but I used the time recommended for bottling tomatoes. It kept really well, but as I use such a lot of it, I didn't need to keep it for a lengthy period of time, so this time I'll follow MoS's advice about the onions, and leave them out.