ASCII media type support & fix a bug in file submission error handling

* Added ASCII media processing
* Added ASCII media display
* Added ASCII media type

Rebased from Joar Wandborg's ascii art branch (squashed to remove the
commits borrowing code of dubious license)

Fixed a bug in file submission error handling:
 - Moved file-extension condition out of loop (what did it do there?)
 - Updated file submission tests
 - Changed error handling in file submission, should now report more
   than absolutely necessary.
This commit is contained in:
Joar Wandborg
2011-11-30 21:21:39 +01:00
committed by Christopher Allan Webber
parent 992e4f8032
commit a246ccca69
18 changed files with 7323 additions and 11 deletions

View File

@@ -402,3 +402,15 @@ table.media_panel th {
margin-top: 10px;
margin-left: 10px;
}
/* ASCII art */
@font-face {
font-family: Inconsolata;
src: local('Inconsolata'), url('../fonts/Inconsolata.otf') format('opentype')
}
.ascii-wrapper pre {
font-family: Inconsolata, monospace;
line-height: 1em;
}

View File

@@ -0,0 +1 @@
../../../extlib/inconsolata/Inconsolata.otf