Skip to content

Commit

Permalink
Removed default trailing newline in output
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcMayhem committed Nov 18, 2016
1 parent 81ba3eb commit b6c238d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions main.py
Expand Up @@ -74,9 +74,9 @@ def main():
xxd = subprocess.Popen("xxd", stdout=sys.stderr, stdin=subprocess.PIPE)
xxd.communicate(source.original_source.encode("latin1"))

for line in v_instance.get_text():
for char in line:
print(char)
buf = v_instance.get_text()
output = "\n".join(buf)
print(output, end="")

v_instance.close()

Expand Down
2 changes: 1 addition & 1 deletion v.py
Expand Up @@ -65,7 +65,7 @@ def get_mode(self):

def get_text(self):
for line in self.nvim_instance.buffers:
yield line
return line

def close(self):
if not self.args["--debug"]:
Expand Down

0 comments on commit b6c238d

Please sign in to comment.