Skip to content

'\n' inside output discarded #106

@Zhangwen-Zhiyuan

Description

@Zhangwen-Zhiyuan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions