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

Display labels correctly in Excel / LibreOffice #10015

Merged
merged 2 commits into from Apr 8, 2016
Merged

Display labels correctly in Excel / LibreOffice #10015

merged 2 commits into from Apr 8, 2016

Conversation

mattab
Copy link
Member

@mattab mattab commented Apr 6, 2016

No description provided.

@mattab mattab added the Needs Review PRs that need a code review label Apr 6, 2016
@mattab mattab added this to the 2.16.1 milestone Apr 6, 2016
@mattab mattab merged commit 802b0f1 into master Apr 8, 2016
@mattab mattab deleted the excel_labels branch April 8, 2016 00:57

// remove first % sign
$count = 1;
$valueWithoutPercentSign = str_replace('%', '', $value, $count);
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a test to make sure it only replaces the first %? For str_replace the $count will hold how many values were replaced. It is not the number of how many values should be replaced. Just noticed this somewhere else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants