From 3c156eaede68fbf6fe0932fd49da2b3ae33f7f38 Mon Sep 17 00:00:00 2001 From: exu Date: Wed, 12 Jul 2023 20:01:56 +0200 Subject: [PATCH] Try filtering output lines --- pages/04.other/useful-commands/default.en.md | 18 +++++++++--------- plugins/shortcode-custom/Prismjsshroot.php | 2 +- plugins/shortcode-custom/Prismjsshuser.php | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/pages/04.other/useful-commands/default.en.md b/pages/04.other/useful-commands/default.en.md index 71bf852..0b268ee 100644 --- a/pages/04.other/useful-commands/default.en.md +++ b/pages/04.other/useful-commands/default.en.md @@ -68,14 +68,14 @@ First, the USB device you want to check has to be selected ```sh lsusb -Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub -Bus 003 Device 003: ID 0c45:652f Microdia Backlit Gaming Keyboard -Bus 003 Device 002: ID 046d:c084 Logitech, Inc. G203 Gaming Mouse -Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub -Bus 002 Device 002: ID 0781:55a3 SanDisk Corp. SanDisk 3.2Gen1 -Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub -Bus 001 Device 002: ID 2972:0047 FiiO Electronics Technology FiiO BTR5 -Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub +(out) Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub +(out) Bus 003 Device 003: ID 0c45:652f Microdia Backlit Gaming Keyboard +(out) Bus 003 Device 002: ID 046d:c084 Logitech, Inc. G203 Gaming Mouse +(out) Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub +(out) Bus 002 Device 002: ID 0781:55a3 SanDisk Corp. SanDisk 3.2Gen1 +(out) Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub +(out) Bus 001 Device 002: ID 2972:0047 FiiO Electronics Technology FiiO BTR5 +(out) Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub ``` [/shuser] @@ -86,7 +86,7 @@ Now, using the ID, the USB class used can be determined ```sh lsusb -d 0781:55a3 -v | grep bcdUSB -bcdUSB 3.20 +(out) bcdUSB 3.20 ``` [/shuser] diff --git a/plugins/shortcode-custom/Prismjsshroot.php b/plugins/shortcode-custom/Prismjsshroot.php index adf9ee1..054abc3 100644 --- a/plugins/shortcode-custom/Prismjsshroot.php +++ b/plugins/shortcode-custom/Prismjsshroot.php @@ -10,7 +10,7 @@ class Prismjsshroot extends Shortcode $this->shortcode->getRawHandlers()->add('shroot', function(ShortcodeInterface $sc) { $content = preg_replace('/^```.*(\n)?$/m', '', $sc->getContent()); $content = trim($content); - return '
'.$content.'
'; + return '
'.$content.'
'; }); } } diff --git a/plugins/shortcode-custom/Prismjsshuser.php b/plugins/shortcode-custom/Prismjsshuser.php index 3850463..11bf804 100644 --- a/plugins/shortcode-custom/Prismjsshuser.php +++ b/plugins/shortcode-custom/Prismjsshuser.php @@ -10,7 +10,7 @@ class Prismjsshuser extends Shortcode $this->shortcode->getRawHandlers()->add('shuser', function(ShortcodeInterface $sc) { $content = preg_replace('/^```.*(\n)?$/m', '', $sc->getContent()); $content = trim($content); - return '
'.$content.'
'; + return '
'.$content.'
'; }); } }