Two teenagers who attacked a boy and then dragged him onto a railway line have been admonished by a judge.
Jordan Duncan and Stephen Fairservice left the 17-year-old with a broken jaw following the incident on May 4, 2018.
The first offenders - both 19 - returned to the dock at the High Court in Glasgow.
They earlier each pled guilty to assaulting the boy to his severe injury, disfigurement, and to the danger of his life at Lanark railway station in Lanarkshire.
But, judge Lord Beckett decided to admonish the duo citing a number of factors including a "high level of provocation" after the 17-year-old had initially been armed with a sword injuring one of them.
Trainee chef Duncan and Fairservice - both 15 at the time - had been with the boy that night.
After a row, the then 17-year-old walked off, but later confronted the pair in the car park of a Morrison's supermarket next to the train station.
Prosecutor Mark Mohammed said he had a samurai sword hidden down the inside of his trousers.
He went on to strike Fairservice on the foot with the weapon.
But, the teenager was then chased by Duncan, Fairservice and others on to the station platform.
Mr Mohammed: "The group - including both Duncan and Fairservice - repeatedly punched and kicked him on the body knocking him to the ground.
"Fairservice jumped onto the railway line - next to the buffers - and dragged the boy onto there.
"Duncan remained on the platform and assisted with the dragging before walking away in possession of the sword."
The 17-year-old was described as bleeding, conscious, but not moving.
Another boy helped him back to the platform and an ambulance was called.
He needed an operation for the broken jaw. The teenager also suffered wounds to his head and ear.
Prosecutors accepted Duncan, of Law, and Fairservice, of Lanark, both Lanarkshire, had acted "under provocation".
They had initially been accused of attempted murder. Three others also faced the same allegation, but had not guilty pleas accepted.
Sentencing, Lord Beckett said he had read background reports and that such an offence would often see someone locked up.
However, the judge listed a string of factors including the provocation, both being 15 at the time and them having to wait four years for the case to be dealt with.
Lord Beckett concluded: "I am going to admonish you. There will be no further punishment.
"This is the end of the line. You are free to leave."
But, he warned the pair still had a high court conviction which would have an impact should they get into bother again.