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

<br> tags being added to truncated lines #112

Open
macsplan opened this issue Nov 4, 2019 · 8 comments
Open

<br> tags being added to truncated lines #112

macsplan opened this issue Nov 4, 2019 · 8 comments

Comments

@macsplan
Copy link

macsplan commented Nov 4, 2019

Hi, any way of turning off the generation of
tags inside the truncated text?

Checked the docs but doesn't seem clear.

@Lemaro86
Copy link

Yes, I have such issue too. And it break all view. I resolve it by br: display none, but it isn’t good. Need add space for after span - bad hack

@Jaikant
Copy link

Jaikant commented Mar 2, 2020

+1 Same issue ...

@educepter
Copy link

+1 Any update on this one yet?

@stofancy
Copy link

  • 1 same issue.

@rodrigoBerlochi
Copy link

rodrigoBerlochi commented Aug 14, 2020

+1 here
I guess the problem is here:

renderLine(line, i, arr) {
        if (i === arr.length - 1) {
            return <span key={i}>{line}</span>;
        } else {
            const br = <br key={i + 'br'} />;

            if (line) {
                return [
                    <span key={i}>{line}</span>,
                    br
                ];
            } else {
                return br;
            }
        }
    }

@sharanya5
Copy link

@pablosichert Same issue. Any updates on this?

@UndeadBaneGitHub
Copy link

Still the case, would love an update

@NwosaEmeka
Copy link

+1 same issue. br tag is injected at random places and using display: none with margin to the span messes up the text

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

No branches or pull requests

9 participants