At a pretrial hearing Tuesday at Fort Meade in Maryland, a military judge ruled that the Army private accused of leaking a mass of classified documents to the website WikiLeaks was subjected to illegal pretrial punishment while being held in a military prison.

Col. Denise Lind found that during the nine months Pfc. Bradley Manning spent in solitary confinement in a Marine Corps brig in Quantico, Va., the treatment he received was "more rigorous than necessary." She credited a total of 112 days toward any prison sentence Manning receives if convicted. (More from The Associated Press here.)

Manning was kept in a windowless cell 23 hours a day, often without any clothing. Officials have said it was to keep him from harming himself.

"Jailers at the Marine Corps brig in Quantico, Va., have testified they considered Manning a suicide risk and that they were only trying to keep him from hurting himself and others by keeping him in a windowless, 6-by-8-foot cell for all but one hour a day."

According to the AP, Lind said the conditions Manning was subjected to "became excessive in relation to legitimate government interests."

The 25-year-old intelligence analyst has been seeking to have the charges against him dropped because of the pretrial conditions he was held in.

The four-day hearing at Fort Meade will also include arguments on whether Manning's motives in leaking the documents matters. Prosecutors say his motives are irrelevant.

Manning faces life in prison if he is convicted of the more serious of the 22 charges against him, so it's unclear how a 112-day reduction could be administered if he receives the harshest sentence. In November, he offered to plead guilty to lesser charges, but a military judge has yet to rule on the offer.

Copyright 2015 NPR. To see more, visit http://www.npr.org/.

Statehouse News Bureau

The Statehouse News Bureau provides educational, comprehensive coverage of legislation, elections, issues and other activities surrounding the Statehouse to Ohio's public radio and television stations.

ideastream® is a not-for-profit multiple-media public service organization serving the communities of Northeast Ohio and based in Cleveland, Ohio. ideastream's mission is to strengthen our communities.