mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-01-22 05:38:35 +01:00
Add tolerance for lolcat-induced escape sequences to 'headline' replace rules #1
This commit is contained in:
parent
5dad2d1137
commit
1c4914bb01
16
boxes-config
16
boxes-config
@ -1856,8 +1856,8 @@ BOX headline
|
|||||||
|
|
||||||
author "Thomas Jensen <boxes(at)thomasjensen(dot)com>"
|
author "Thomas Jensen <boxes(at)thomasjensen(dot)com>"
|
||||||
designer "Thomas Jensen <boxes(at)thomasjensen(dot)com>"
|
designer "Thomas Jensen <boxes(at)thomasjensen(dot)com>"
|
||||||
revision "1.2"
|
revision "1.3"
|
||||||
revdate "August 22, 1999 (Sunday, 13:22h)"
|
revdate "February 09, 2021 (Tuesday, 22:00h)"
|
||||||
created "March 18, 1999 (Thursday, 15:25h)"
|
created "March 18, 1999 (Thursday, 15:25h)"
|
||||||
tags "programming, box"
|
tags "programming, box"
|
||||||
|
|
||||||
@ -1874,11 +1874,17 @@ shapes {
|
|||||||
sw ("/*") s ("*") se ("*/")
|
sw ("/*") s ("*") se ("*/")
|
||||||
}
|
}
|
||||||
|
|
||||||
replace "(.)(?!$)" with "$1 "
|
delim _"
|
||||||
reverse "([^ ]) " to "$1"
|
replace "((?:\x1b\[[0-9;]*m)+(?!\x1b).(?!$))|((?:\x1b\[[0-9;]*m)+$)|([^\x1b](?!$))" with "$0 "
|
||||||
|
reverse "^ " to " "
|
||||||
|
reverse "^ " to " "
|
||||||
|
reverse "^ " to " "
|
||||||
|
reverse "^ " to " "
|
||||||
|
reverse "((?:\x1b\[[0-9;]*m)*(?!\x1b).) " to "$1"
|
||||||
|
|
||||||
padding {
|
padding {
|
||||||
horiz 2
|
left 2
|
||||||
|
right 1
|
||||||
}
|
}
|
||||||
|
|
||||||
elastic (n,e,s,w)
|
elastic (n,e,s,w)
|
||||||
|
Loading…
Reference in New Issue
Block a user