Indonesia’s president pushed Friday for parliament to delay its vote on a controversial bill that would criminalize sex outside of marriage.

President Joko Widodo announced that 14 articles of the bill needed further review after various groups ordered his minister “to perfect” it.

A vote on the bill — seen as a move toward greater piety in the world’s most populous Muslim-majority country — was due next week.

“I have ordered the law and human rights minister to convey this decision to parliament, to delay the confirmation of the criminal code bill,” Widodo said in a televised news conference.

The new code, as originally written, states that a person who has sex with someone who is not their spouse could spend a year behind bars — if a close family member lodges a complaint.

Same-sex couples will be heavily impacted by the law, as Indonesia does not recognize gay marriage.

Additionally, unmarried couples who “live together as a husband and wife” could spend six months in jail or be fined 10 million rupiah — or $710 — equivalent to three months’ salary for many Indonesians.

Authorities say the new laws will also apply to foreigners — but when asked if tourists could be jailed for sex outside of marriage, lawmaker Teuku Taufiqulhadi said: “No problem, as long as people don’t know.”

The code also includes a four-year jail term for abortion without a medical emergency or rape — as well as penalties for insulting the president’s dignity.

Andreas Harsono, senior Indonesia researcher at Human Rights Watch, blasted the code as “disastrous not only for women and religious and gender minorities, but for all Indonesians.”

“Lawmakers should remove all the abusive articles before passing the law,” he said.

Law and Human Rights Minister Yasonna Laoly told reporters that he would do as the president asked and tweak the clauses in question — but said the bill is actually more lenient than the current Dutch colonial-era laws.

“It’s not as if our country will arrest everybody or we wish to put millions in jail only because of cohabitation,” he said, noting that someone could only be penalized if a parent, child or spouse reported them — or if a village chief did so with the family’s support.

Widodo’s decision comes after Australia warned its citizens — among the leading visitors to the island of Bali — of the risks they’d face if they decide to have sex outside marriage or homosexual relations there.

With Post Wires