Reduce attribute names length

This commit is contained in:
Philippe Proulx 2013-10-26 13:54:51 -04:00
parent bc14f295e3
commit ddf491e8f0
2 changed files with 14 additions and 14 deletions

View file

@ -1904,22 +1904,22 @@
}
/* attributes overrides */
.a-bold {
.a-b {
font-weight: bold;
}
.a-no-bold {
.a-no-b {
font-weight: normal;
}
.a-italic {
.a-i {
font-style: italic;
}
.a-no-italic {
.a-no-i {
font-style: normal;
}
.a-underline {
.a-u {
text-decoration: underline;
}
.a-no-underline {
.a-no-u {
text-decoration: none;
}
.a-reset {

View file

@ -195,16 +195,16 @@
WeeChatProtocol._attrNameFromChar = function(ch) {
var chars = {
// WeeChat protocol
'*': 'bold',
'!': 'reverse',
'/': 'italic',
'_': 'underline',
'*': 'b',
'!': 'r',
'/': 'i',
'_': 'u',
// some extension often used (IRC?)
'\x01': 'bold',
'\x02': 'reverse',
'\x03': 'italic',
'\x04': 'underline'
'\x01': 'b',
'\x02': 'r',
'\x03': 'i',
'\x04': 'u'
};
if (ch in chars) {