Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
f91e0534
Commit
f91e0534
authored
Apr 12, 2016
by
MinchinWeb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No extra line on Linux
Windows typically prints a free line after program output; Linux doesn't.
parent
912c3cd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
topydo/lib/ListFormat.py
topydo/lib/ListFormat.py
+4
-3
No files found.
topydo/lib/ListFormat.py
View file @
f91e0534
...
...
@@ -295,10 +295,11 @@ def _N_lines():
Otherwise, it looks for a newline ('
\
n
') in the environmental variable
PS1.
'''
lines_in_prompt = 2 # prompt is assumed to take up one line, even
# without any newlines in it, plus there is a free
# line printed out after the program output
lines_in_prompt = 1 # prompt is assumed to take up one line, even
# without any newlines in it
if "win32" in sys.platform:
lines_in_prompt += 1 # Windows will typically print a free line after
# the program output
a = re.findall('
\
$
_
', os.getenv('
PROMPT
', ''))
lines_in_prompt += len(a)
else:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment