René's URL Explorer Experiment


Title: Feature Request - To Merge Differences · Issue #168 · java-diff-utils/java-diff-utils · GitHub

Open Graph Title: Feature Request - To Merge Differences · Issue #168 · java-diff-utils/java-diff-utils

X Title: Feature Request - To Merge Differences · Issue #168 · java-diff-utils/java-diff-utils

Description: Describe the Feature A new request to consider including whitespace (space in my case) to represent the differences. To Reproduce Steps to reproduce the behavior: Example data --> Included in snippet. simple program snippet import java.u...

Open Graph Description: Describe the Feature A new request to consider including whitespace (space in my case) to represent the differences. To Reproduce Steps to reproduce the behavior: Example data --> Included in snipp...

X Description: Describe the Feature A new request to consider including whitespace (space in my case) to represent the differences. To Reproduce Steps to reproduce the behavior: Example data --> Included in sn...

Opengraph URL: https://github.com/java-diff-utils/java-diff-utils/issues/168

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature Request - To Merge Differences","articleBody":"**Describe the Feature**\r\nA new request to consider including whitespace (space in my case) to represent the differences.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Example data --\u003e Included in snippet.\r\n2. simple program snippet\r\n```\r\nimport java.util.Arrays;\r\nimport java.util.List;\r\n\r\nimport com.github.difflib.text.DiffRow;\r\nimport com.github.difflib.text.DiffRowGenerator;\r\n\r\npublic class ShowDiffViewUsingJavaDiffUtils {\r\n\r\n    static String leftString = \"A sample string to test this tool.\";\r\n    static String rightString = \"A sample string is defined here and will be used to test diff library.\";\r\n\r\n    public static void main(String[] args) throws Throwable {\r\n\r\n      //create a configured DiffRowGenerator\r\n        DiffRowGenerator generator = DiffRowGenerator.create()\r\n                        .ignoreWhiteSpaces(true)\r\n                        .showInlineDiffs(true)\r\n                        .mergeOriginalRevised(false)\r\n                        .inlineDiffByWord(true)\r\n                        .oldTag(f -\u003e \"--\")\r\n                        .newTag(f -\u003e \"++\")\r\n                        .build();\r\n\r\n        //compute the differences for two test texts.\r\n        List\u003cDiffRow\u003e rows = generator.generateDiffRows(\r\n                        Arrays.asList(leftString),\r\n                        Arrays.asList(rightString));\r\n        \r\n        rows.stream().forEach(r -\u003e {\r\n            System.out.println(\"OldLine: \" + r.getOldLine());\r\n            System.out.println(\"NewLine: \" + r.getNewLine());\r\n        });\r\n\r\n    }\r\n\r\n}\r\n\r\n```\r\n3. See error - NA.\r\n\r\n**Expected behavior**\r\nThe output of my program is:\r\n```\r\nOldLine: A sample string to test --this-- --tool--.\r\nNewLine: A sample string ++is defined here and will be used ++to test ++diff++ ++library++.\r\n```\r\n\r\nI would like to have this diff tool to consider whitespace. e.g. consider whitespace between `this tool` for the differences.\r\nExpected output:\r\n```\r\nOldLine: A sample string to test --this tool--.\r\nNewLine: A sample string ++is defined here and will be used ++to test ++diff library++.\r\n```\r\n\r\nI have tried all possible configurations to achieve this, but no luck, hence raising this request. If the feature does exist, please share the details.\r\n\r\n**System**\r\n - Java version - 1.8\r\n - Version - 4.12\r\n","author":{"url":"https://github.com/gvjoshi25","@type":"Person","name":"gvjoshi25"},"datePublished":"2023-05-29T15:03:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/168/java-diff-utils/issues/168"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:55c31c6c-c081-101d-c412-f4b00e05ec76
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB6DA:3D0535:1787631:1F97EEF:6969AA31
html-safe-noncea45d39af71e4d84fbde3846502fab821b14a78e28fdebe5cb71b764e03528357
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkRBOjNEMDUzNToxNzg3NjMxOjFGOTdFRUY6Njk2OUFBMzEiLCJ2aXNpdG9yX2lkIjoiOTAzMTUzNzIyNTU2MzIyMDUyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace89c3759da4181c1ae1823775a15bbf3aee4aa31e2d066a4f88ba10a8d8b5223
hovercard-subject-tagissue:1730915211
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/java-diff-utils/java-diff-utils/168/issue_layout
twitter:imagehttps://opengraph.githubassets.com/bc831a1fe9470893377734c753f30a1a9f29c1afb67abb7f8c93df3c638ff5e1/java-diff-utils/java-diff-utils/issues/168
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bc831a1fe9470893377734c753f30a1a9f29c1afb67abb7f8c93df3c638ff5e1/java-diff-utils/java-diff-utils/issues/168
og:image:altDescribe the Feature A new request to consider including whitespace (space in my case) to represent the differences. To Reproduce Steps to reproduce the behavior: Example data --> Included in snipp...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegvjoshi25
hostnamegithub.com
expected-hostnamegithub.com
None24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7
turbo-cache-controlno-preview
go-importgithub.com/java-diff-utils/java-diff-utils git https://github.com/java-diff-utils/java-diff-utils.git
octolytics-dimension-user_id40540835
octolytics-dimension-user_loginjava-diff-utils
octolytics-dimension-repository_id86663812
octolytics-dimension-repository_nwojava-diff-utils/java-diff-utils
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id86663812
octolytics-dimension-repository_network_root_nwojava-diff-utils/java-diff-utils
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
release124667f43168afb6c9c03b7c02eb5b1d2e1be3d9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/java-diff-utils/java-diff-utils/issues/168#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjava-diff-utils%2Fjava-diff-utils%2Fissues%2F168
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjava-diff-utils%2Fjava-diff-utils%2Fissues%2F168
Sign up https://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=java-diff-utils%2Fjava-diff-utils
Reloadhttps://github.com/java-diff-utils/java-diff-utils/issues/168
Reloadhttps://github.com/java-diff-utils/java-diff-utils/issues/168
Reloadhttps://github.com/java-diff-utils/java-diff-utils/issues/168
java-diff-utils https://github.com/java-diff-utils
java-diff-utilshttps://github.com/java-diff-utils/java-diff-utils
Please reload this pagehttps://github.com/java-diff-utils/java-diff-utils/issues/168
Notifications https://github.com/login?return_to=%2Fjava-diff-utils%2Fjava-diff-utils
Fork 215 https://github.com/login?return_to=%2Fjava-diff-utils%2Fjava-diff-utils
Star 1.5k https://github.com/login?return_to=%2Fjava-diff-utils%2Fjava-diff-utils
Code https://github.com/java-diff-utils/java-diff-utils
Issues 1 https://github.com/java-diff-utils/java-diff-utils/issues
Pull requests 1 https://github.com/java-diff-utils/java-diff-utils/pulls
Discussions https://github.com/java-diff-utils/java-diff-utils/discussions
Actions https://github.com/java-diff-utils/java-diff-utils/actions
Projects 0 https://github.com/java-diff-utils/java-diff-utils/projects
Wiki https://github.com/java-diff-utils/java-diff-utils/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/java-diff-utils/java-diff-utils/security
Please reload this pagehttps://github.com/java-diff-utils/java-diff-utils/issues/168
Insights https://github.com/java-diff-utils/java-diff-utils/pulse
Code https://github.com/java-diff-utils/java-diff-utils
Issues https://github.com/java-diff-utils/java-diff-utils/issues
Pull requests https://github.com/java-diff-utils/java-diff-utils/pulls
Discussions https://github.com/java-diff-utils/java-diff-utils/discussions
Actions https://github.com/java-diff-utils/java-diff-utils/actions
Projects https://github.com/java-diff-utils/java-diff-utils/projects
Wiki https://github.com/java-diff-utils/java-diff-utils/wiki
Security https://github.com/java-diff-utils/java-diff-utils/security
Insights https://github.com/java-diff-utils/java-diff-utils/pulse
New issuehttps://github.com/login?return_to=https://github.com/java-diff-utils/java-diff-utils/issues/168
New issuehttps://github.com/login?return_to=https://github.com/java-diff-utils/java-diff-utils/issues/168
Feature Request - To Merge Differenceshttps://github.com/java-diff-utils/java-diff-utils/issues/168#top
no-issue-activityhttps://github.com/java-diff-utils/java-diff-utils/issues?q=state%3Aopen%20label%3A%22no-issue-activity%22
https://github.com/gvjoshi25
https://github.com/gvjoshi25
gvjoshi25https://github.com/gvjoshi25
on May 29, 2023https://github.com/java-diff-utils/java-diff-utils/issues/168#issue-1730915211
no-issue-activityhttps://github.com/java-diff-utils/java-diff-utils/issues?q=state%3Aopen%20label%3A%22no-issue-activity%22
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.