Title: Refactor parse_xml function to handle external target references (Issue #1349) (old PR #1350) by TommasoPetrolito · Pull Request #1518 · python-openxml/python-docx · GitHub
Open Graph Title: Refactor parse_xml function to handle external target references (Issue #1349) (old PR #1350) by TommasoPetrolito · Pull Request #1518 · python-openxml/python-docx
X Title: Refactor parse_xml function to handle external target references (Issue #1349) (old PR #1350) by TommasoPetrolito · Pull Request #1518 · python-openxml/python-docx
Description: I start from this issue/PR: #1350 Trying to push again for this change to be merged/integrated, as people still face the issue/bug if this won't be merged. In many projects I had to use the custom commits on forks to make it work, the discussion/conversation in PR 1350 shows that the issue is felt by a significant number of users and it would be nice to have this very little change finally merged @scanny THE MODIFICATION IS: The added code checks if self.target_ref exists and if it starts with a "#", which is a common way to denote external references. If both conditions are met, the method returns RTM.EXTERNAL, indicating that the target reference is external. This change improves the robustness of our code by correctly handling and classifying external references. This will prevent potential errors or unexpected behavior when encountering such references. Please merge this change now that the modification is properly aligned with latest code version and has no conflicts.
Open Graph Description: I start from this issue/PR: #1350 Trying to push again for this change to be merged/integrated, as people still face the issue/bug if this won't be merged. In many projects I had to use the cus...
X Description: I start from this issue/PR: #1350 Trying to push again for this change to be merged/integrated, as people still face the issue/bug if this won't be merged. In many projects I had to use the...
Opengraph URL: https://github.com/python-openxml/python-docx/pull/1518
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:0a3f4acf-7fda-28ef-6e75-101ac41102bd |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | D988:331E62:9AA37F6:CD33079:696E11A1 |
| html-safe-nonce | 309146797d52033e43f67e9550b2b49b7de2100e6c90a294fe20325514668abe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTg4OjMzMUU2Mjo5QUEzN0Y2OkNEMzMwNzk6Njk2RTExQTEiLCJ2aXNpdG9yX2lkIjoiNjI3Mzk4OTI4MDMwOTA1NTkwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dfc2fa7fd44c6f6a855782efebce834af6718da51ba62d1de798c655f1b982a4 |
| hovercard-subject-tag | pull_request:2815029813 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python-openxml/python-docx/pull/1518/checks |
| twitter:image | https://avatars.githubusercontent.com/u/17761623?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/17761623?s=400&v=4 |
| og:image:alt | I start from this issue/PR: #1350 Trying to push again for this change to be merged/integrated, as people still face the issue/bug if this won't be merged. In many projects I had to use the cus... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1a7d6d739bf034e67486b9f97a31887ca30302b72a0acac49b6bcddff34356d7 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-openxml/python-docx git https://github.com/python-openxml/python-docx.git |
| octolytics-dimension-user_id | 3403760 |
| octolytics-dimension-user_login | python-openxml |
| octolytics-dimension-repository_id | 13592924 |
| octolytics-dimension-repository_nwo | python-openxml/python-docx |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13592924 |
| octolytics-dimension-repository_network_root_nwo | python-openxml/python-docx |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 87d7872ec7094ed247923539669aabda9230966f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width