Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Comment escape char #26

Merged
merged 3 commits into from
Jul 20, 2015
Merged

Comment escape char #26

merged 3 commits into from
Jul 20, 2015

Conversation

vertein
Copy link
Contributor

@vertein vertein commented Jul 20, 2015

Before:
image

image

After:
image

image

@vertein vertein changed the title Emergency contact Comment escape char Jul 20, 2015
@keirserrie
Copy link

👍

@@ -145,7 +146,7 @@ private static JSONObject jsonifyEmergencyContact(ContactInformation eci) {
JSONObject emergencyContact = new JSONObject();
emergencyContact.put("EMERGENCY NAME", eci.getPreferredName());
emergencyContact.put("RELATION", eci.getRelationship());
emergencyContact.put("RELATION COMMENT", eci.getComments());
emergencyContact.put("RELATION COMMENT", eci.getComments()+" ");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we add in a "if ends in quote then add space"? Baby concern about saving over and over will add more and more spaces.

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 had this thought too. I was on the fence and could go either way. Spaces vs computational logic. Let's do it. I'll update.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Checked and no longer will append unlimited spaces

@timlevett
Copy link
Collaborator

👍

vertein added a commit that referenced this pull request Jul 20, 2015
@vertein vertein merged commit ab5a4b5 into master Jul 20, 2015
@vertein vertein deleted the emergencyContact branch July 20, 2015 16:47
@apetro
Copy link
Member

apetro commented Jul 20, 2015

👍

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.

None yet

4 participants