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

Soft line breaks within a textarea are not respected #93

Open
RonchettiAssociati opened this issue Oct 16, 2024 · 0 comments
Open

Soft line breaks within a textarea are not respected #93

RonchettiAssociati opened this issue Oct 16, 2024 · 0 comments

Comments

@RonchettiAssociati
Copy link

RonchettiAssociati commented Oct 16, 2024

Congrats. The library works very well on macOS/Chrome.

Now I am trying to print a div which contains a textarea with soft line breaks, like this:

HTML (using vue and quasar)

    <q-input dense borderless autogrow class="text-body2 bg-grey-1"  style="width:280px; text-align: left" type="texture" v-model="address">
    </q-input>

JAVASCRIPT
this.address = firstLine + '\n' + cliente['società'] + '\n' + indirizzo;

I have tried with '
', '\r\n', and '\r'. In all 3 cases I get no line breaks.

ON SCREEN IT LOOKS LIKE THIS
Image 4

ON "PAPER" IT LOOKS LIKE THIS
Image 5

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

1 participant