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

Edit In Excel: Fix metadata generation bug when caption name uses en dash instead of em dash #2032

Merged
merged 7 commits into from
Sep 23, 2024

Conversation

DenLilleMand
Copy link
Contributor

@DenLilleMand DenLilleMand commented Sep 13, 2024

Summary

Apparently in the Norwegian translation and maybe other places captions use en dash instead of the traditional em dash
, I'm not sure if this is on purpose but it does make our integrations a little more complicated to do nicely, e.g. now I will make sure we support it in Edit In Excel, but we could easily have other integrations that breaks on this or will have in the future.

Can see the following two screenshots where the first line is using em dash and the second line is using en dash, where the en dash is encoded and the em dash is removed.
Code:
image
Result:
image

Work Item(s)

Fixes AB#548471

@DenLilleMand DenLilleMand self-assigned this Sep 13, 2024
@DenLilleMand DenLilleMand requested a review from a team as a code owner September 13, 2024 12:09
@github-actions github-actions bot added this to the Version 26.0 milestone Sep 13, 2024
@DenLilleMand DenLilleMand changed the title Fix metadata generation bug Edit In Excel: Fix metadata generation bug when caption name uses en dash instead of em dash Sep 13, 2024
@DenLilleMand DenLilleMand requested a review from a team as a code owner September 16, 2024 09:46
@github-actions github-actions bot added the Build: scripts & configs Build scripts and configuration files label Sep 16, 2024
@DenLilleMand DenLilleMand force-pushed the private/mattinielsen/fix-metadata-generation-bug-2 branch from 3a2ff2d to a351559 Compare September 16, 2024 10:11
@github-actions github-actions bot added Build: Automation Workflows and other setup in .github folder and removed Build: scripts & configs Build scripts and configuration files labels Sep 16, 2024
@DenLilleMand DenLilleMand force-pushed the private/mattinielsen/fix-metadata-generation-bug-2 branch from a351559 to 7075ac5 Compare September 16, 2024 10:12
@github-actions github-actions bot removed the Build: Automation Workflows and other setup in .github folder label Sep 16, 2024
encimita
encimita previously approved these changes Sep 16, 2024
encimita
encimita previously approved these changes Sep 20, 2024
@mazhelez mazhelez removed the request for review from a team September 20, 2024 15:30
mazhelez
mazhelez previously approved these changes Sep 20, 2024
JesperSchulz
JesperSchulz previously approved these changes Sep 23, 2024
@DenLilleMand DenLilleMand merged commit 1d9a164 into main Sep 23, 2024
25 checks passed
@DenLilleMand DenLilleMand deleted the private/mattinielsen/fix-metadata-generation-bug-2 branch September 23, 2024 11:04
DenLilleMand added a commit that referenced this pull request Sep 23, 2024
… dash` instead of `em dash` (#2032)

<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->
Apparently in the Norwegian translation and maybe other places captions
use `en dash` instead of the traditional `em dash`
, I'm not sure if this is on purpose but it does make our integrations a
little more complicated to do nicely, e.g. now I will make sure we
support it in Edit In Excel, but we could easily have other integrations
that breaks on this or will have in the future.

Can see the following two screenshots where the first line is using `em
dash` and the second line is using `en dash`, where the `en dash` is
encoded and the `em dash` is removed.
Code:

![image](https://github.com/user-attachments/assets/ea84e70d-66ee-46e6-b031-8dde21471b4b)
Result:

![image](https://github.com/user-attachments/assets/506dc9da-fc6d-46b3-aa43-ea47aded264d)


#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes
[AB#548471](https://dynamicssmb2.visualstudio.com/Dynamics%20SMB/_workitems/edit/548471/)
DenLilleMand added a commit that referenced this pull request Sep 23, 2024
… dash` instead of `em dash` (#2032)

<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->
Apparently in the Norwegian translation and maybe other places captions
use `en dash` instead of the traditional `em dash`
, I'm not sure if this is on purpose but it does make our integrations a
little more complicated to do nicely, e.g. now I will make sure we
support it in Edit In Excel, but we could easily have other integrations
that breaks on this or will have in the future.

Can see the following two screenshots where the first line is using `em
dash` and the second line is using `en dash`, where the `en dash` is
encoded and the `em dash` is removed.
Code:

![image](https://github.com/user-attachments/assets/ea84e70d-66ee-46e6-b031-8dde21471b4b)
Result:

![image](https://github.com/user-attachments/assets/506dc9da-fc6d-46b3-aa43-ea47aded264d)


#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes
[AB#548471](https://dynamicssmb2.visualstudio.com/Dynamics%20SMB/_workitems/edit/548471/)
DenLilleMand added a commit that referenced this pull request Sep 23, 2024
…ses `en… (#2075)

… dash` instead of `em dash` (#2032)

<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md -->
#### Summary <!-- Provide a general summary of your changes -->
Apparently in the Norwegian translation and maybe other places captions
use `en dash` instead of the traditional `em dash` , I'm not sure if
this is on purpose but it does make our integrations a little more
complicated to do nicely, e.g. now I will make sure we support it in
Edit In Excel, but we could easily have other integrations that breaks
on this or will have in the future.

Can see the following two screenshots where the first line is using `em
dash` and the second line is using `en dash`, where the `en dash` is
encoded and the `em dash` is removed.
Code:


![image](https://github.com/user-attachments/assets/ea84e70d-66ee-46e6-b031-8dde21471b4b)
Result:


![image](https://github.com/user-attachments/assets/506dc9da-fc6d-46b3-aa43-ea47aded264d)


#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes

[AB#548471](https://dynamicssmb2.visualstudio.com/Dynamics%20SMB/_workitems/edit/548471/)

<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->

[AB#550129](https://dynamicssmb2.visualstudio.com/Dynamics%20SMB/_workitems/edit/550129/)
DenLilleMand added a commit that referenced this pull request Sep 23, 2024
… dash in norway tenants v25 0 (#2076)

… dash` instead of `em dash` (#2032)

<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md -->
#### Summary <!-- Provide a general summary of your changes -->
Apparently in the Norwegian translation and maybe other places captions
use `en dash` instead of the traditional `em dash` , I'm not sure if
this is on purpose but it does make our integrations a little more
complicated to do nicely, e.g. now I will make sure we support it in
Edit In Excel, but we could easily have other integrations that breaks
on this or will have in the future.

Can see the following two screenshots where the first line is using `em
dash` and the second line is using `en dash`, where the `en dash` is
encoded and the `em dash` is removed.
Code:


![image](https://github.com/user-attachments/assets/ea84e70d-66ee-46e6-b031-8dde21471b4b)
Result:


![image](https://github.com/user-attachments/assets/506dc9da-fc6d-46b3-aa43-ea47aded264d)


#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes

[AB#548471](https://dynamicssmb2.visualstudio.com/Dynamics%20SMB/_workitems/edit/548471/)

<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes
[AB#550127](https://dynamicssmb2.visualstudio.com/Dynamics%20SMB/_workitems/edit/550127/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants