The details of a price gouging ban would only be decided after an election, but there are precedents to draw on.