A man broke wind at a police officer before hurling racist abuse at him, a court heard.

Malcolm Gill, of Longfield Avenue in Dalton, became upset in the holding area at Huddersfield Police Station following his arrest for breaching his bail conditions.

He pleaded guilty to a charge of racially-aggravated harassment towards a police officer.

Kirklees magistrates heard that the offence happened on January 16 this year.

James Weekes, prosecuting, said that at the time the 45-year-old was on court bail for three admitted matters of theft.

He was told to report at the police station but turned up a day late.

Magistrates heard that Gill appeared agitated while at the front desk and thrashed his head around.

He told an officer on the desk that his dog was worth more than him.

Gill was then escorted into the custody area by another officer.

Mr Weekes said: “As they were sat waiting the defendant got up, turned around and turned his posterior towards the officer.

“He broke wind towards him twice and sat back down.”

Mr Weekes said that Gill then shouted at the officer that he wanted him to loosen his handcuffs.

When he was told that this was not going to happen and to stay in his seat, Gill swore at the officer and then called him a 'terrorist'.

Magistrates were told that the officer was upset by Gill’s language and told him that he was under arrest for that offence.

He continued his torrent of swearing during his interview until deciding to sit there in silence.

Mr Weekes said: “The officer describes being harassed and distressed, especially when he was acting in his duties arresting the defendant for breaching his bail

Gill appeared in court in custody after missing his original hearing last week.

Ian Whiteley, mitigating, said that his client was told to be at the police station on the day he arrived.

He said that the events in the holding area unfolded after he tried to remonstrate with police.

Mr Whiteley added that the offence was out of character for his client.

Magistrates gave Gill a 12-month community order as a direct alternative to custody.This includes 30 days of activities and a one-month curfew.

He must also pay £85 costs and £60 victim surcharge.