mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
Fix padding issues with ascii art and \\\
This commit is contained in:
BIN
ascii/distro/2016-05-15-005811_485x338_scrot.png
Normal file
BIN
ascii/distro/2016-05-15-005811_485x338_scrot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.5 KiB |
1
neofetch
1
neofetch
@@ -2128,6 +2128,7 @@ getascii () {
|
|||||||
# Turn the file into a variable and strip escape codes.
|
# Turn the file into a variable and strip escape codes.
|
||||||
ascii_strip=$(<"$ascii")
|
ascii_strip=$(<"$ascii")
|
||||||
ascii_strip=${ascii_strip//\$\{??\}}
|
ascii_strip=${ascii_strip//\$\{??\}}
|
||||||
|
ascii_strip=${ascii_strip//\\\\/ }
|
||||||
ascii_strip=${ascii_strip//\\}
|
ascii_strip=${ascii_strip//\\}
|
||||||
|
|
||||||
# Get length of longest line
|
# Get length of longest line
|
||||||
|
Reference in New Issue
Block a user