Prabowo Subianto supporters rally at Indonesia court
Indonesian police have fired tear gas at supporters of former presidential candidate Prabowo Subianto ahead of a verdict on his challenge to the results of July's poll.
Crowds breached a barbed wire barrier blocking the road to the constitutional court, prompting volleys of tear gas and water cannon from riot police.
Mr Subianto lost the election to Joko Widodo by a six percent margin.
But he claims electoral fraud took place and took his case to the court.
Hundreds of flag-waving supporters have been gathering at the court since Thursday afternoon as the judges read out the lengthy verdict, which could take several hours.
Witnesses said protesters rammed four trucks into the barriers, and a number of people were injured.
The skirmish lasted only a few minutes and the crowd dispersed quickly, reports say.
The BBC's Karishma Vaswani at the scene says police have expanded the barricaded area and the situation now appears to be under control.
Around 50,000 police and military personnel are on standby in case of more violence, authorities say.
The official vote count found Mr Widodo - the front-runner - to be the winner by a six percentage point margin.
Mr Subianto's lawyers have argued that as many as 24 million votes were "troubled", and have alleged irregularities with voting processes. He has also alleged there were "hundreds" of polling stations that received zero votes.
But the court is widely expected to reject Mr Subianto's claims and uphold the election result.
Mr Widodo's win was seen as heralding a new era for Indonesia, whose leaders have generally been drawn from the military and political elite.
Mr Prabowo is a former army general closely associated with the traditional elite, while Mr Widodo, a former furniture-maker who grew up in a small village, has promised a decisive break with Indonesia's authoritarian past and better social welfare for the poor.