diff -Nru rtv-1.25.0+dfsg/CHANGELOG.rst rtv-1.25.1+dfsg/CHANGELOG.rst --- rtv-1.25.0+dfsg/CHANGELOG.rst 2019-02-03 22:47:41.000000000 +0000 +++ rtv-1.25.1+dfsg/CHANGELOG.rst 2019-02-13 15:38:20.000000000 +0000 @@ -2,6 +2,7 @@ RTV Changelog ============= +.. _1.25.1: http://github.com/michael-lazar/rtv/releases/tag/v1.25.1 .. _1.25.0: http://github.com/michael-lazar/rtv/releases/tag/v1.25.0 .. _1.24.0: http://github.com/michael-lazar/rtv/releases/tag/v1.24.0 .. _1.23.0: http://github.com/michael-lazar/rtv/releases/tag/v1.23.0 @@ -39,6 +40,16 @@ .. _1.2: http://github.com/michael-lazar/rtv/releases/tag/v1.2 -------------------- +1.25.1_ (2019-02-13) +-------------------- + +Bugfixes + +* Fixed a bug that was causing newlines to be stripped when posting comments + and submissions. + + +-------------------- 1.25.0_ (2019-02-03) -------------------- diff -Nru rtv-1.25.0+dfsg/CONTROLS.rst rtv-1.25.1+dfsg/CONTROLS.rst --- rtv-1.25.0+dfsg/CONTROLS.rst 2019-02-03 22:47:41.000000000 +0000 +++ rtv-1.25.1+dfsg/CONTROLS.rst 2019-02-13 15:38:20.000000000 +0000 @@ -26,7 +26,7 @@ Some actions require that you be logged in to your reddit account. You can log in by pressing ``u`` while inside of the program. -Once you are logged in your username will appear in the top-right corner of the screen. +Once you are logged in, your username will appear in the top-right corner of the screen. :``a``/``z``: Upvote/downvote :``c``: Compose a new post or comment @@ -41,7 +41,7 @@ Subreddit Mode -------------- -In addition to the basic commands, the following actions can be performed when you're viewing a **subreddit** window. +In addition to the basic commands, the following actions can be performed when you're viewing a subreddit . :``l`` or ``►``: Enter the selected submission :``o`` or ``ENTER``: Open the submission link with your web browser @@ -69,7 +69,7 @@ Submission Mode --------------- -In addition to the basic commands, the following actions can be performed when you're viewing a **submission** window. +In addition to the basic commands, the following actions can be performed when you're viewing a submission. :``h`` or ``◄``: Return to the subreddit :``l`` or ``►``: Open the selected comment in a new window diff -Nru rtv-1.25.0+dfsg/debian/changelog rtv-1.25.1+dfsg/debian/changelog --- rtv-1.25.0+dfsg/debian/changelog 2019-02-07 03:43:15.000000000 +0000 +++ rtv-1.25.1+dfsg/debian/changelog 2019-02-21 11:43:05.000000000 +0000 @@ -1,3 +1,10 @@ +rtv (1.25.1+dfsg-1) unstable; urgency=medium + + * New upstream release (1.25.1) + * Add debian CI test. + + -- Josue Ortega Thu, 21 Feb 2019 05:43:05 -0600 + rtv (1.25.0+dfsg-1) unstable; urgency=medium * New upstream release (1.25.0): diff -Nru rtv-1.25.0+dfsg/debian/tests/control rtv-1.25.1+dfsg/debian/tests/control --- rtv-1.25.0+dfsg/debian/tests/control 1970-01-01 00:00:00.000000000 +0000 +++ rtv-1.25.1+dfsg/debian/tests/control 2019-02-21 11:43:05.000000000 +0000 @@ -0,0 +1 @@ +Test-Command: rtv --version diff -Nru rtv-1.25.0+dfsg/README.md rtv-1.25.1+dfsg/README.md --- rtv-1.25.0+dfsg/README.md 2019-02-03 22:47:41.000000000 +0000 +++ rtv-1.25.1+dfsg/README.md 2019-02-13 15:38:20.000000000 +0000 @@ -4,7 +4,6 @@

RTV provides a text-based interface to view and interact with reddit.
-It's compatible with most terminal emulators on Linux and macOS.

@@ -12,7 +11,7 @@

-RTV is built in python using the curses library. +RTV is compatible with most terminals on Linux and macOS.

--- @@ -30,9 +29,6 @@ coveralls - - gitter - say-thanks @@ -83,6 +79,14 @@ $ pkg install rtv ``` +### From source + +```bash +$ git clone https://github.com/michael-lazar/rtv.git +$ cd rtv +$ python setup.py install +``` + ## Usage To run the program, type: diff -Nru rtv-1.25.0+dfsg/rtv/terminal.py rtv-1.25.1+dfsg/rtv/terminal.py --- rtv-1.25.0+dfsg/rtv/terminal.py 2019-02-03 22:47:41.000000000 +0000 +++ rtv-1.25.1+dfsg/rtv/terminal.py 2019-02-13 15:38:20.000000000 +0000 @@ -912,7 +912,7 @@ flags = re.MULTILINE | re.DOTALL pattern = ''.format(token=TOKEN) text = re.sub(pattern, '', text, flags=flags) - return re.sub( '^[\s\n]*\n', '', text, flags=flags).rstrip() + return re.sub('\A[\s\n]*\n', '', text, flags=flags).rstrip() def clear_screen(self): """ diff -Nru rtv-1.25.0+dfsg/rtv/__version__.py rtv-1.25.1+dfsg/rtv/__version__.py --- rtv-1.25.0+dfsg/rtv/__version__.py 2019-02-03 22:47:41.000000000 +0000 +++ rtv-1.25.1+dfsg/rtv/__version__.py 2019-02-13 15:38:20.000000000 +0000 @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals -__version__ = '1.25.0' +__version__ = '1.25.1' diff -Nru rtv-1.25.0+dfsg/rtv.1 rtv-1.25.1+dfsg/rtv.1 --- rtv-1.25.0+dfsg/rtv.1 2019-02-03 22:47:41.000000000 +0000 +++ rtv-1.25.1+dfsg/rtv.1 2019-02-13 15:38:20.000000000 +0000 @@ -1,4 +1,4 @@ -.TH "RTV" "1" "February 03, 2019" "Version 1.25.0" "Usage and Commands" +.TH "RTV" "1" "February 13, 2019" "Version 1.25.1" "Usage and Commands" .SH NAME RTV - Reddit Terminal Viewer .SH SYNOPSIS diff -Nru rtv-1.25.0+dfsg/scripts/RELEASE_CHECKLIST.md rtv-1.25.1+dfsg/scripts/RELEASE_CHECKLIST.md --- rtv-1.25.0+dfsg/scripts/RELEASE_CHECKLIST.md 2019-02-03 22:47:41.000000000 +0000 +++ rtv-1.25.1+dfsg/scripts/RELEASE_CHECKLIST.md 2019-02-13 15:38:20.000000000 +0000 @@ -4,7 +4,7 @@ 1. Switch to the master branch and stash any uncommited changes. 2. Bump the version number in [rtv/\_\_version\_\_.py](rtv/__version__.py). 3. Update the release notes in the [CHANGELOG.rst](CHANGELOG.rst). -4. Update the contributer list by running [``scripts/build_authors.py``](scripts/build_authors.py). +4. Update the contributor list by running [``scripts/build_authors.py``](scripts/build_authors.py). 5. Re-generate the manpage by running [``scripts/build_manpage.py``](scripts/build_manpage.py). 6. Make sure the bundled packages are up-to-date by running [``scripts/update_packages.py``](scripts/update_packages.py). 7. Commit all changes to the master branch. diff -Nru rtv-1.25.0+dfsg/tests/test_terminal.py rtv-1.25.1+dfsg/tests/test_terminal.py --- rtv-1.25.0+dfsg/tests/test_terminal.py 2019-02-03 22:47:41.000000000 +0000 +++ rtv-1.25.1+dfsg/tests/test_terminal.py 2019-02-13 15:38:20.000000000 +0000 @@ -709,6 +709,10 @@ text = '\n \n code\n block\n' assert terminal.strip_instructions(text) == ' code\n block' + # However, blank lines in the middle of comment should not be stripped + text = 'paragraph 1\n\nparagraph 2\n' + assert terminal.strip_instructions(text) == 'paragraph 1\n\nparagraph 2' + def test_terminal_get_link_pages(terminal): diff -Nru rtv-1.25.0+dfsg/version.py rtv-1.25.1+dfsg/version.py --- rtv-1.25.0+dfsg/version.py 2019-02-03 22:47:41.000000000 +0000 +++ rtv-1.25.1+dfsg/version.py 2019-02-13 15:38:20.000000000 +0000 @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals -__version__ = '1.25.0' +__version__ = '1.25.1'