René's URL Explorer Experiment


Title: Copy paragraphs · Issue #28 · Skelmis/python-docx · GitHub

Open Graph Title: Copy paragraphs · Issue #28 · Skelmis/python-docx

X Title: Copy paragraphs · Issue #28 · Skelmis/python-docx

Description: How can I copy the paragraphs of one document to another document or e.g. into a table cell? This was my current code, but always something is missing. Now the bullet list styles and the hyperlinks are gone. @staticmethod def docx_copy_p...

Open Graph Description: How can I copy the paragraphs of one document to another document or e.g. into a table cell? This was my current code, but always something is missing. Now the bullet list styles and the hyperlinks...

X Description: How can I copy the paragraphs of one document to another document or e.g. into a table cell? This was my current code, but always something is missing. Now the bullet list styles and the hyperlinks...

Opengraph URL: https://github.com/Skelmis/python-docx/issues/28

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Copy paragraphs","articleBody":"How can I copy the paragraphs of one document to another document or e.g. into a table cell?\n\nThis was my current code, but always something is missing. Now the bullet list styles and the hyperlinks are gone. \n\n```python\n    @staticmethod\n    def docx_copy_paragraph(source_paragraph: Paragraph, target_paragraph: Paragraph) -> None:\n        \"\"\"\n        Copy the content and formatting from source_paragraph to target_paragraph.\n\n        Args:\n            source_paragraph (Paragraph): The source paragraph to copy from.\n            target_paragraph (Paragraph): The target paragraph to copy to.\n        \"\"\"\n        # Copy each run (text with formatting) from the source paragraph\n        # to the target paragraph.\n        for run in source_paragraph.runs:\n            target_run = target_paragraph.add_run(run.text, run.style)\n\n            source_run_property = run._r.get_or_add_rPr() # pylint: disable=protected-access\n            new_run_property = copy.deepcopy(source_run_property)\n\n            target_run._r.replace(target_run._r.get_or_add_rPr(), new_run_property) # pylint: disable=protected-access\n```","author":{"url":"https://github.com/BlueAndi","@type":"Person","name":"BlueAndi"},"datePublished":"2025-10-20T19:29:21Z","url":"https://github.com/Skelmis/python-docx/issues/28"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7ece66fd-8aa3-c0cd-89b6-04f15d9fe320
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB422:370317:61251:7EA14:6AFF7C4E
html-safe-noncedfba18ec1da1e2fc7457ef7bb715ccae56efa78de3385631f8027b3f2a030512
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDIyOjM3MDMxNzo2MTI1MTo3RUExNDo2QUZGN0M0RSIsInZpc2l0b3JfaWQiOiIzNDM1OTA5MDk2MjU4MTA4NDk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac96e06da1399f3d3a63b63cc0afa25b4dc21af6b13b6ea1c8d780836a519ad052
hovercard-subject-tagissue:3533657045
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Skelmis/python-docx/28/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c1ef5f697b6799582ae5dd84e1d22534638fbf9734a197243f3bf824b1b3d74b/Skelmis/python-docx/issues/28
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c1ef5f697b6799582ae5dd84e1d22534638fbf9734a197243f3bf824b1b3d74b/Skelmis/python-docx/issues/28
og:image:altHow can I copy the paragraphs of one document to another document or e.g. into a table cell? This was my current code, but always something is missing. Now the bullet list styles and the hyperlinks...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameBlueAndi
hostnamegithub.com
expected-hostnamegithub.com
Noneb5a2047dbbde77e0ba2f8dfd78621e8a7313a105f7437ca693fcccd16cd137ee
turbo-cache-controlno-preview
go-importgithub.com/Skelmis/python-docx git https://github.com/Skelmis/python-docx.git
octolytics-dimension-user_id47520067
octolytics-dimension-user_loginSkelmis
octolytics-dimension-repository_id842909080
octolytics-dimension-repository_nwoSkelmis/python-docx
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id842909080
octolytics-dimension-repository_network_root_nwoSkelmis/python-docx
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release83e3dfa4de364d61589204ed35e53b2b7f77fba2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/Skelmis/python-docx/issues/28#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSkelmis%2Fpython-docx%2Fissues%2F28
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSkelmis%2Fpython-docx%2Fissues%2F28
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=Skelmis%2Fpython-docx
Reloadhttps://github.com/Skelmis/python-docx/issues/28
Reloadhttps://github.com/Skelmis/python-docx/issues/28
Reloadhttps://github.com/Skelmis/python-docx/issues/28
Skelmishttps://github.com/Skelmis
python-docxhttps://github.com/Skelmis/python-docx
Codehttps://github.com/Skelmis/python-docx
Issues6 (6)https://github.com/Skelmis/python-docx/issues
Pull requests1 (1)https://github.com/Skelmis/python-docx/pulls
Actionshttps://github.com/Skelmis/python-docx/actions
Projectshttps://github.com/Skelmis/python-docx/projects
Security and qualityhttps://github.com/Skelmis/python-docx/security
Insightshttps://github.com/Skelmis/python-docx/pulse
https://github.com/Skelmis/python-docx
New issuehttps://github.com/login?return_to=https://github.com/Skelmis/python-docx/issues/28
New issuehttps://github.com/login?return_to=https://github.com/Skelmis/python-docx/issues/28
Copy paragraphshttps://github.com/Skelmis/python-docx/issues/28#top
https://github.com/BlueAndi
BlueAndihttps://github.com/BlueAndi
on Oct 20, 2025https://github.com/Skelmis/python-docx/issues/28#issue-3533657045
https://github.com/Skelmis
Skelmishttps://github.com/Skelmis
on Oct 21, 2025https://github.com/Skelmis/python-docx/issues/28#issuecomment-3424963464
https://github.com/Skelmis
Skelmishttps://github.com/Skelmis
on Oct 21, 2025https://github.com/Skelmis/python-docx/issues/28#issuecomment-3425033355
here for an examplehttps://github.com/python-openxml/python-docx/issues/182
https://github.com/darkvisiontech/docxcompose/tree/masterhttps://github.com/darkvisiontech/docxcompose/tree/master
https://github.com/BlueAndi
BlueAndihttps://github.com/BlueAndi
on Oct 21, 2025https://github.com/Skelmis/python-docx/issues/28#issuecomment-3427574804
here for an examplehttps://github.com/python-openxml/python-docx/issues/182
https://github.com/darkvisiontech/docxcompose/tree/masterhttps://github.com/darkvisiontech/docxcompose/tree/master
Sign up for freehttps://github.com/signup?return_to=https://github.com/Skelmis/python-docx/issues/28
Sign in to commenthttps://github.com/login?return_to=https://github.com/Skelmis/python-docx/issues/28
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.