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

Not preserving spaces around <a> tags #10

Open
laggingreflex opened this issue Mar 3, 2017 · 1 comment
Open

Not preserving spaces around <a> tags #10

laggingreflex opened this issue Mar 3, 2017 · 1 comment
Labels

Comments

@laggingreflex
Copy link

laggingreflex commented Mar 3, 2017

This:

<div>1 <a>2</a> 3</div>
      ^ spaces ^

reproduces

<div>1<a>2</a>3</div>
      ^ not   ^

problem only found to be occurring with <a> tags so far

Edit: actually I think it's all nested tags, but then spaced in between nested tags is still preserved. Here's another case:

<div>1 <a>2</a> <b>3</b> 4</div>

reproduces

<div>1<a>2</a> <b>3</b>4</div>
@developit
Copy link
Owner

@laggingreflex try passing trim={false}, it turns off whitespace trimming. I think we do need to tweak it, but for your use-case that should fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants