-node => -ansii-to-html
This commit is contained in:
parent
4038c96773
commit
c2486fd19a
6 changed files with 4 additions and 16 deletions
|
|
@ -45,7 +45,7 @@ namespace Yavsc.Controllers
|
|||
var accept = Request.Headers["Accept"];
|
||||
if (accept.Any(v => v.Split(',').Contains("text/html")))
|
||||
{
|
||||
return File(AnsiToHtmlEncoder.GetStream(stream),"text/html");
|
||||
return File(AnsiToHtmlEncoder.GetStream(stream), "text/html");
|
||||
}
|
||||
return File(stream,"text/text");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ namespace Yavsc.Helpers
|
|||
|
||||
public static Stream GetStream(StreamReader reader)
|
||||
{
|
||||
// FIXME get some more stable alternative
|
||||
var procStart = new ProcessStartInfo("node", "node_modules/ansi-to-html/bin/ansi-to-html")
|
||||
{
|
||||
UseShellExecute = false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue