]> git.cworth.org Git - obsolete/notmuch-to-html/commitdiff
Add "notmuch search" to the advertised queries.
authorCarl Worth <cworth@cworth.org>
Tue, 22 Apr 2014 20:05:55 +0000 (13:05 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 22 Apr 2014 20:05:55 +0000 (13:05 -0700)
This will allow a user to actually copy-and-paste the queries, for example.

notmuch-to-html

index 6b42affa8cb9d5ab9f8c1aa680da346808bdd1fd..663dd8733e0129163ff745b9aef1ac42d57f12cf 100755 (executable)
@@ -188,11 +188,11 @@ class HtmlPage (Page):
             stream.write(view['comment'])
             stream.write('\n')
         for line in [
-                'The view is generated from the following query:',
+                '<p>This view is generated from the following query:',
                 '</p>',
                 '<p>',
                 '  <code>',
-                view['query-string'],
+                'notmuch search ' + view['query-string'],
                 '  </code>',
                 '</p>',
                 ]: