Skip to content

Is there a way to preserve whitespace in the result ? #241

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

Closed
fleksin opened this issue Jan 4, 2019 · 1 comment
Closed

Is there a way to preserve whitespace in the result ? #241

fleksin opened this issue Jan 4, 2019 · 1 comment

Comments

@fleksin
Copy link

fleksin commented Jan 4, 2019

If I use diffLines with option{ ignoreWhitespace: true }, the result I get is also trimmed.
Is there a way I can keep the whitespace in the result ?

@Mingun
Copy link
Contributor

Mingun commented Jan 10, 2019

This is exactly what I fix in #219

Mingun added a commit to Mingun/jsdiff that referenced this issue Jan 10, 2019
danowensdev added a commit to danowensdev/jsdiff that referenced this issue Sep 30, 2022
Fix kpdecker#241: `diffTrimmedLines` now keep whitespaces in the output
danowensdev added a commit to codealphadev/jsdiff that referenced this issue Sep 30, 2022
Fix kpdecker#241: `diffTrimmedLines` now keep whitespaces in the output
dsellarsnr pushed a commit to dsellarsnr/jsdiff that referenced this issue Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants