Skip to content
This repository has been archived by the owner on Aug 20, 2019. It is now read-only.

remove windows newlines #181

Merged
merged 1 commit into from
Feb 10, 2017
Merged

remove windows newlines #181

merged 1 commit into from
Feb 10, 2017

Conversation

cjkeilig
Copy link
Contributor

No description provided.

@@ -146,7 +146,7 @@ jobSubmissionModule.controller('jobSubmissionCtrl', ['$scope', '$log', '$timeout

// Separate SBATCH options from commands
job.commands = editor.getValue();
var other = editor.getValue().split("\n");
var other = editor.getValue().split(/\r?\n/);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this actually remove the \r? from the commands?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so, after I submitted the job, I did cat -A test.slurm on crane and the new lines were all dollar signs so I assumed that this meant "\n"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, sounds good to me. If it successfully submitted after having \r's in the file, then it removed them. Natasha wasn't even able to submit a job with \r.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only for the jobFile, they are stored in job history without the removal of the "\r", I forgot to change that.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, yeah. Remove them everywhere! You should really just remove them from the editor contents, then move on saving the commands everywhere.

@djw8605 djw8605 merged commit 95c67b6 into unlhcc:master Feb 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants