The New York Times (NYT) - Get Report surprised Wall Street with a second-quarter profit Thursday, though the company's core problem -- declining ad sales for print media in general -- continued to accelerate.

In fact, the Times said total ad sales fell by 30% from a year ago, worse than the 27% contraction registered by the publisher of record last quarter -- and, indeed, a more severe drop than in any period in recent memory at the company.

Still, investors appeared to seize on the positive earnings surprise and on one phrase in the report, delivered by Times CEO Janet Robinson. Though ad revenues "decreased across all major categories," she said in a prepared statement, "the rate of decline lessened throughout the quarter."

And that was it. Investors, especially on a stridently upward day across the equities markets, bid up Times shares by 3.5% to $6.85, on heavier than average volume.

Stripping out charges and one-time gains, the Times posted adjusted per-share earnings of 8 cents a share, well above analysts' expectations of a 4-cent loss.

The Times attributed the better-than-expected figure to cost cutting. Operating expenses fell 20% in the second quarter compared with a year ago, it said. Some of those savings came from extracting concessions from the unions at the

Boston Globe

, where the Times recently settled a labor dispute after threatening to shut the paper down.

The Times gave no indication of its plans for the


, which is reportedly for sale. It did say that it wants to sell off its stake in the Boston Red Sox by at some point this year.

Including items (amortization, depreciation and severance payments to laid off workers, etc.) in both the just-ended and year-ago quarters, the company had a profit of just $39 million, or 27 cents a share, up from $21 million, or 15 cents, a year ago. (The latest period was helped by a $37 million tax break.)

Total revenue fell 21% to $585 million from $742 million.

Other big publishers have proved themselves proficient at managing Wall Street expectations this earnings season, issuing better-then-foreseen quarterly reports.

Last week,


(GCI) - Get Report

topped analysts' targets but said ad revenue fell 31%.


(MNI) - Get Report

, third largest newspaper chain in the U.S., did the same on Tuesday (beat estimates; said ad sales dropped 30%); its beaten-down shares, laid low as the company appeared to be flirting with insolvency, have more than doubled since.

Though not as much of a pure-play newspaper concern, the

Washington Post


is slated to release quarterly results on July 31, while

News Corp.

(NWS) - Get Report

, publisher of the

New York Post


Wall Street Journal

, which is on a non-standard calendar year, won't report until August.

Copyright 2009 Inc. All rights reserved. This material may not be published, broadcast, rewritten, or redistributed.