From 8299aebf092806c1f8da8fb37d7c26c890d4910f Mon Sep 17 00:00:00 2001 From: wesinator <5124946+wesinator@users.noreply.github.com> Date: Sun, 17 Mar 2019 17:32:02 -0400 Subject: [PATCH 1/4] Update manpage version to Ubuntu cosmic use latest ubuntu release manpages --- explainshell/manpage.py | 2 +- explainshell/web/templates/explain.html | 2 +- explainshell/web/templates/macros.html | 4 ++-- explainshell/web/templates/tagger.html | 2 +- tools/extractgzlist | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/explainshell/manpage.py b/explainshell/manpage.py index 979c3d7a..a7556811 100644 --- a/explainshell/manpage.py +++ b/explainshell/manpage.py @@ -120,7 +120,7 @@ def _parsetext(lines): section = None i = 0 for l in lines: - l = re.sub(_href, r'', l) + l = re.sub(_href, r'', l) for lookfor, replacewith in _replacements: l = re.sub(lookfor, replacewith, l) # confirm the line is valid utf8 diff --git a/explainshell/web/templates/explain.html b/explainshell/web/templates/explain.html index a43071a5..7848dc24 100644 --- a/explainshell/web/templates/explain.html +++ b/explainshell/web/templates/explain.html @@ -40,7 +40,7 @@
{% for m in matches if m.name %} {% if loop.first %}source manpages: {% endif %} -{{ m.name|e }}{% if not loop.last %}, {% endif %} +{{ m.name|e }}{% if not loop.last %}, {% endif %} {% endfor %}
{%- endblock %} diff --git a/explainshell/web/templates/macros.html b/explainshell/web/templates/macros.html index befaa2ef..53cb89b1 100644 --- a/explainshell/web/templates/macros.html +++ b/explainshell/web/templates/macros.html @@ -1,10 +1,10 @@ {% macro outputcommand(mp, suggestions) -%} {% if suggestions|length == 0 %} - {{ mp.program|e }} + {{ mp.program|e }} {% else %} - {{ mp.program|e }} + {{ mp.program|e }}