From 68b198d7dad0355f3a567afb9afcc606c16c9902 Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Thu, 3 Mar 2016 22:03:06 -0800 Subject: [PATCH] Added brackets to help page. --- rtv/docs.py | 8 ++++---- rtv/page.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rtv/docs.py b/rtv/docs.py index b520df5..bb9eab8 100644 --- a/rtv/docs.py +++ b/rtv/docs.py @@ -17,7 +17,7 @@ Press `?` to open the help screen. """ HELP = """ -Basic Commands +[Basic Commands] `j/k` or `UP/DOWN` : Move the cursor up/down `m/n` or `PgUp/PgDn`: Jump to the previous/next page `o` or `ENTER` : Open the selected item as a webpage @@ -27,7 +27,7 @@ Basic Commands `?` : Show the help screen `q/Q` : Quit/Force quit -Authenticated Commands +[Authenticated Commands] `a/z` : Upvote/downvote `c` : Compose a new post or comment `e` : Edit an existing post or comment @@ -35,12 +35,12 @@ Authenticated Commands `i` : Display new messages prompt `s` : Open/close subscribed subreddits list -Subreddit Mode +[Subreddit Mode] `l` or `RIGHT` : Enter the selected submission `/` : Open a prompt to switch subreddits `f` : Open a prompt to search the current subreddit -Submission Mode +[Submission Mode] `h` or `LEFT` : Return to subreddit mode `l` or `RIGHT` : Open the selected comment in a new window `SPACE` : Fold the selected comment, or load additional comments diff --git a/rtv/page.py b/rtv/page.py index 0e006b1..53ac2c8 100644 --- a/rtv/page.py +++ b/rtv/page.py @@ -79,7 +79,7 @@ class Page(object): @PageController.register(Command('HELP')) def show_help(self): - self.term.show_notification(docs.HELP.strip().splitlines()) + self.term.show_notification(docs.HELP.strip('\n').splitlines()) @PageController.register(Command('SORT_HOT')) def sort_content_hot(self):