Commits

Georg Brandl  committed c61a98b

Fix interpretation of #abc format color strings.

  • Participants
  • Parent commits 7925d53

Comments (0)

Files changed (2)

File pygments/lexers/templates.py

         ],
     }
 
+
 class ColdfusionMarkupLexer(RegexLexer):
     """
     Coldfusion markup only

File pygments/style.py

                 if len(col) == 6:
                     return col
                 elif len(col) == 3:
-                    return col[0]+'0'+col[1]+'0'+col[2]+'0'
+                    return col[0]*2 + col[1]*2 + col[2]*2
             elif text == '':
                 return ''
             assert False, "wrong color format %r" % text