View Single Post
Old 08-29-2024, 07:44 PM   #12
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,369
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by BeckyEbook View Post
In Sigil, something like this works:

Find:
Code:
:(\s*)0(?:\.0+)?(?:em|px|rem|%|vh|vw|vmin|vmax|cm|mm|in|pt|pc)?(?=;|\s|$)
Replace:
Code:
: 0
I can't do any better, maybe I'm tired of the heat.
....although I would probably get rid of the : at the beginning in case there are any shorthand...eg margin: 0px 0em 0vw 0.0rem;

I obviously haven't tested this... (I'm taking a 'coke' break at work ) maybe it already does shorthand???

Last edited by Turtle91; 08-29-2024 at 07:48 PM.
Turtle91 is offline   Reply With Quote