Fix T37772: Tab indentation missing in Diffusion

This seems to be a specific of how browsers are dealing with
spaces/tabs. Multiple spaces works just fine, but multiple
tabs were treating as a single space which breaks indentation.

Now made it so tabs are replaced with 4 spaces. Not ideal but
still better than fully unreadable code.
This commit is contained in:
2014-01-17 17:05:14 +06:00
parent 30f0de9427
commit 3471c1b87e

View File

@@ -789,7 +789,7 @@ final class DiffusionBrowseFileController extends DiffusionBrowseController {
"\xE2\x80\x8B",
// TODO: [HTML] Not ideal.
phutil_safe_html($line['data']),
phutil_safe_html(str_replace("\t", ' ', $line['data'])),
));
$rows[] = phutil_tag(