Created
May 11, 2010 18:04
-
-
Save shoorick/397614 to your computer and use it in GitHub Desktop.
Compressor for HTML generated by kate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -pw | |
use strict; | |
s{#([[:xdigit:]])\1([[:xdigit:]])\2([[:xdigit:]])\3}{#$1$2$3}g; | |
s{<(b|i|em|strong)></\1>}{}gi; | |
s{</(b|i|em|strong)><\1>}{}gi; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Улучшает генерируемый редактором kate HTML-код:
<tag></tag>
и</tag><tag>