cs01 / cs01/pygdbmi

'\n' inside output discarded

Open
#106 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
260
Forks
53
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
When debugging a program that outputs strings containing '\n', the output is split at each '\n'. If the output includes multiple consecutive '\n', these newline characters are discarded.

To Reproduce
If debugging a C++ program with a statement like std::cout << "aaa\n\n\n\n\nbbb\n\n\n" << std::endl;, pygdbmi presents two separate output messages containing "aaa" and "bbb", respectively. The information regarding the quantity of '\n' between them is not retained.

Expected behavior
The '\n' characters should be preserved as-is within the program's output.

OS: Ubuntu 18
pygdbmi version (pip freeze output): 0.11.0.0

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.