I am wondering whether it is necessary to break ones fast when travelling, or can one continue fasting?

It is necessary to break the fast if travelling for less than 10 days. It is haraam to fast whilst travelling