Skip to content
New issue

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

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

Already on GitHub? # to your account

Add XML declaration custom single/double quote style support in glif and *.plist files #157

Merged
merged 16 commits into from
Aug 15, 2021

Conversation

chrissimpkins
Copy link
Collaborator

Closes #156

src/layer.rs Outdated Show resolved Hide resolved
src/write.rs Outdated Show resolved Hide resolved
@chrissimpkins chrissimpkins marked this pull request as ready for review August 12, 2021 01:45
@chrissimpkins
Copy link
Collaborator Author

Ready for review. I'll begin working on tests.

Copy link
Member

@cmyr cmyr left a comment

Choose a reason for hiding this comment

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

Cool, this looks good. I think just rewriting the file before closing the file handle is a reasonable approach, and the code seems nice and compact.

One naming nit, and then I'm going to patch that double write separately and investigate the performance a bit more.

src/write.rs Outdated Show resolved Hide resolved
cmyr added a commit that referenced this pull request Aug 12, 2021
@chrissimpkins
Copy link
Collaborator Author

Do we want to add Win CI testing since there are platform-specific approaches added here?

@madig
Copy link
Collaborator

madig commented Aug 12, 2021

I think so!

@chrissimpkins chrissimpkins changed the title Add XML declaration custom single/double quote style support Add XML declaration custom single/double quote style support in glif and *.plist files Aug 12, 2021
@chrissimpkins
Copy link
Collaborator Author

chrissimpkins commented Aug 13, 2021

Do we want to add Win CI testing since there are platform-specific approaches added here?

I think so!

#161

@chrissimpkins
Copy link
Collaborator Author

Tests added

cmyr added a commit that referenced this pull request Aug 13, 2021
@chrissimpkins chrissimpkins force-pushed the custom-xml-decl-quotes branch from 0c0663c to 8169c76 Compare August 14, 2021 22:52
Copy link
Member

@cmyr cmyr left a comment

Choose a reason for hiding this comment

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

Looks good, one tiny fixup, I'll apply that and merge. :)

src/write.rs Outdated Show resolved Hide resolved
@cmyr cmyr merged commit 1a20be6 into linebender:master Aug 15, 2021
@chrissimpkins chrissimpkins deleted the custom-xml-decl-quotes branch August 16, 2021 04:38
chrissimpkins added a commit to source-foundry/ufofmt that referenced this pull request Aug 16, 2021
chrissimpkins added a commit to source-foundry/ufofmt that referenced this pull request Aug 17, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow customizing quote char in xml header
3 participants