diff --git a/README.md b/README.md index c88c8cbd..fc373ab8 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ When querying explainshell, it: ## Missing man pages -Right now explainshell.com contains the entire [archive of Ubuntu](http://manpages.ubuntu.com/). It's not +Right now explainshell.com contains the entire [archive of Ubuntu](https://manpages.ubuntu.com/). It's not possible to directly add a missing man page to the live site (it might be in the future). ## Running explainshell locally diff --git a/explainshell/manpage.py b/explainshell/manpage.py index 979c3d7a..ad8ac934 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/about.html b/explainshell/web/templates/about.html index 726d11e2..2a202412 100644 --- a/explainshell/web/templates/about.html +++ b/explainshell/web/templates/about.html @@ -4,7 +4,7 @@

Hello,

This site contains 29761 parsed manpages from sections 1 and 8 found in - Ubuntu's manpage repository. + Ubuntu's manpage repository. A lot of heuristics were used to extract the arguments of each program, and there are errors here and there, especially in manpages that have a non-standard layout.

diff --git a/explainshell/web/templates/explain.html b/explainshell/web/templates/explain.html index a43071a5..37d9526a 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..69359250 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 }}