diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-02-07 17:07:33 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-02-07 17:07:33 +0100 |
commit | 2d7a215c5661ab74e6f52a1ecac71a1f802063f9 (patch) | |
tree | 410665496a47a002e7293fd5e9a09e6d63f08957 | |
parent | 57b8aead119fd36c2e272eb4b56e0188977fd7fd (diff) |
Default syntax to 'text' when generating cache.
-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) |