Fix rst option generation