Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"excel" csv option generates multiple lines #46892

Closed
laxrulz777 mannequin opened this issue Apr 15, 2008 · 3 comments
Closed

"excel" csv option generates multiple lines #46892

laxrulz777 mannequin opened this issue Apr 15, 2008 · 3 comments
Labels
extension-modules C modules in the Modules dir

Comments

@laxrulz777
Copy link
Mannequin

laxrulz777 mannequin commented Apr 15, 2008

BPO 2640
Nosy @smontanaro
Files
  • unnamed
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2008-04-16.20:01:03.889>
    created_at = <Date 2008-04-15.17:38:58.137>
    labels = ['extension-modules', 'invalid']
    title = '"excel" csv option generates multiple lines'
    updated_at = <Date 2008-04-16.20:01:03.887>
    user = 'https://bugs.python.org/laxrulz777'

    bugs.python.org fields:

    activity = <Date 2008-04-16.20:01:03.887>
    actor = 'skip.montanaro'
    assignee = 'none'
    closed = True
    closed_date = <Date 2008-04-16.20:01:03.889>
    closer = 'skip.montanaro'
    components = ['Extension Modules']
    creation = <Date 2008-04-15.17:38:58.137>
    creator = 'laxrulz777'
    dependencies = []
    files = ['10042']
    hgrepos = []
    issue_num = 2640
    keywords = []
    message_count = 3.0
    messages = ['65523', '65534', '65562']
    nosy_count = 2.0
    nosy_names = ['skip.montanaro', 'laxrulz777']
    pr_nums = []
    priority = 'normal'
    resolution = 'not a bug'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue2640'
    versions = ['Python 2.5']

    @laxrulz777
    Copy link
    Mannequin Author

    laxrulz777 mannequin commented Apr 15, 2008

    Current: csv.py indicates lineterminator = '\r\n'
    Issue: looks fine in notepad but when pulled into excel (office 2003)
    extra lines are added
    Resolution: should read lineterminator = '\r'

    @laxrulz777 laxrulz777 mannequin added the extension-modules C modules in the Modules dir label Apr 15, 2008
    @smontanaro
    Copy link
    Contributor

    What platform are you on? Did you open the output file in
    binary mode? I sort of suspect you failed to add 'b' to the
    file mode and are getting a text file.

    @laxrulz777
    Copy link
    Mannequin Author

    laxrulz777 mannequin commented Apr 16, 2008

    you're absolutely correct, i apologize.

    On Tue, Apr 15, 2008 at 7:40 PM, Skip Montanaro <report@bugs.python.org>
    wrote:

    Skip Montanaro <skip@pobox.com> added the comment:

    What platform are you on? Did you open the output file in
    binary mode? I sort of suspect you failed to add 'b' to the
    file mode and are getting a text file.

    ----------
    nosy: +skip.montanaro


    Tracker <report@bugs.python.org>
    <http://bugs.python.org/issue2640\>


    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    extension-modules C modules in the Modules dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant