X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/7bf061541b0424b427bbbd1300e81d12190c9c54..43b23197ffc3e1d08a1e08b09dbb31f06692d7ff:/src/phorkie/Renderer/ReStructuredText.php diff --git a/src/phorkie/Renderer/ReStructuredText.php b/src/phorkie/Renderer/ReStructuredText.php index 136de16..d8d3183 100644 --- a/src/phorkie/Renderer/ReStructuredText.php +++ b/src/phorkie/Renderer/ReStructuredText.php @@ -22,8 +22,9 @@ class Renderer_ReStructuredText ); $process = proc_open('rst2html', $descriptorspec, $pipes); if (!is_resource($process)) { - //FIXME: fallback to geshi - return $file->getContent(); + return '
' + . 'Cannot open process to execute rst2html' + . '
'; } fwrite($pipes[0], $file->getContent()); @@ -43,8 +44,9 @@ class Renderer_ReStructuredText if ($retval != 0) { $html = '
' - . 'rst2html encountered some error; return value ' . $retval . '
' - . 'Error message:' . $errors + . 'rst2html encountered some error; return value ' + . $retval . '
' + . 'Error message: ' . $errors . '
' . $html; }