diff options
-rw-r--r-- | pastepy.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -108,7 +108,7 @@ class Paste(object): def view(self): def get_formatted(syntax, text): - lex = get_lexer_by_name(syntax) + lex = get_lexer_by_name(syntax or 'text') lexername = lex.name text = highlight(text, lex, self.formatter) return (lexername, text) |