From 53cddb9c9e119561458dff43a4b1be67de73cf4f Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Sat, 28 Oct 2017 15:47:06 +0200 Subject: Word-wrap for txt files This means there are no line numbers for .txt anymore, but I find it more important to have word wrap. Resolves: https://github.com/cweiske/phorkie/issues/31 --- src/phorkie/Renderer/Plaintext.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/phorkie/Renderer/Plaintext.php (limited to 'src') diff --git a/src/phorkie/Renderer/Plaintext.php b/src/phorkie/Renderer/Plaintext.php new file mode 100644 index 0000000..ef448f9 --- /dev/null +++ b/src/phorkie/Renderer/Plaintext.php @@ -0,0 +1,25 @@ +
'
+            . htmlspecialchars($file->getContent())
+            . '
' . "\n"; + return $html; + } +} + +?> -- cgit v1.2.3