##// END OF EJS Templates
renderer: don't render plaintext files as RST
marcink -
r1289:e8c231d6 default
parent child Browse files
Show More
@@ -88,7 +88,7 b' class MarkupRenderer(object):'
88 elif MarkupRenderer.RST_PAT.findall(filename):
88 elif MarkupRenderer.RST_PAT.findall(filename):
89 detected_renderer = 'rst'
89 detected_renderer = 'rst'
90 elif MarkupRenderer.PLAIN_PAT.findall(filename):
90 elif MarkupRenderer.PLAIN_PAT.findall(filename):
91 detected_renderer = 'rst'
91 detected_renderer = 'plain'
92 else:
92 else:
93 detected_renderer = 'plain'
93 detected_renderer = 'plain'
94
94
@@ -33,13 +33,13 b' from rhodecode.lib.markup_renderer impor'
33 ('readme.Rst', 'rst'),
33 ('readme.Rst', 'rst'),
34 ('readme.rest', 'rst'),
34 ('readme.rest', 'rst'),
35 ('readme.rest', 'rst'),
35 ('readme.rest', 'rst'),
36 ('readme', 'rst'),
37 ('README', 'rst'),
38
36
39 ('markdown.xml', 'plain'),
37 ('markdown.xml', 'plain'),
40 ('rest.xml', 'plain'),
38 ('rest.xml', 'plain'),
41 ('readme.xml', 'plain'),
39 ('readme.xml', 'plain'),
42
40
41 ('readme', 'plain'),
42 ('README', 'plain'),
43 ('readme.mdx', 'plain'),
43 ('readme.mdx', 'plain'),
44 ('readme.rstx', 'plain'),
44 ('readme.rstx', 'plain'),
45 ('readmex', 'plain'),
45 ('readmex', 'plain'),
General Comments 0
You need to be logged in to leave comments. Login now