Headlines around the world are warning tourists visiting Indonesia that they face up to a year in jail if caught having sex or cohabiting with someone…