I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 28b51fbb authored by str4d's avatar str4d
Browse files

Better format for file metadata in TXT format

parent 25cf1169
No related branches found
No related tags found
No related merge requests found
...@@ -75,6 +75,9 @@ def spec_show(name, txt=False): ...@@ -75,6 +75,9 @@ def spec_show(name, txt=False):
content = content.replace(']_', '] ') content = content.replace(']_', '] ')
# Change highlight formatter # Change highlight formatter
content = content.replace('{% highlight', "{% highlight formatter='textspec'") content = content.replace('{% highlight', "{% highlight formatter='textspec'")
# Other string changes
content = content.replace(' :lastupdated', '- Last updated')
content = content.replace(' :accuratefor', '- Accurate for')
# render the post with Jinja2 to handle URLs etc. # render the post with Jinja2 to handle URLs etc.
rendered_content = render_template_string(content) rendered_content = render_template_string(content)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment