Skip to content

Newline stripping of pathname needs fixing #1

Closed
@AccidentallyTheCable

Description

@AccidentallyTheCable

Current code will strip last char from the pathname entry, however it does not check to see if its actually a newline before doing so. This can result in files coming out with incorrect file extensions as the last letter is dropped. I did a hack to make it work for me, but this should definitely check to see if its a newline before dropping

--- pathname = pathname[:-1].decode("utf-8") #Remove the newling, and decode
+++ pathname = pathname.decode("utf-8") #Remove the newling, and decode

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