# Last line in rich text not wrapping

**URL:** <https://community.glideapps.com/t/last-line-in-rich-text-not-wrapping/59953>\
**Category:** Report a Bug\
**Created:** [March 31, 2023, 8:58pm UTC](https://community.glideapps.com/t/last-line-in-rich-text-not-wrapping/59953 "2023-03-31T20:58:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkirkwood001](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jkirkwood001/32/54952_2.png) [@jkirkwood001](https://community.glideapps.com/u/jkirkwood001)\
**Post date:** [March 31, 2023, 8:58pm UTC](https://community.glideapps.com/t/last-line-in-rich-text-not-wrapping/59953/1 "2023-03-31T20:58:03Z")

</div>

I use a rich text field to compose an email.

In the preview screen, and once sent, the last line - i.e. my name - continues on the previous line:

![2023-03-31 16_51_36-My OREC · Glide](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/c/4c0638941962a99af08bfeaabbeec418b0f168ad.png)  
 ![2023-03-31 16_50_48-My OREC · Glide](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/a/fa6603a0cbc792049ebb3e459268edf5f837a1b5.png)

I can’t manage to make the last line wrap!

**How to replicate:**  
1 Use a rich text field.  
2 Add some paragraphs of text  
3 Preview that field in another form  
4 Option: email with that field

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [March 31, 2023, 9:21pm UTC](https://community.glideapps.com/t/last-line-in-rich-text-not-wrapping/59953/2 "2023-03-31T21:21:37Z")

</div>

Try 2 spaces and a carriage returns.

That’s worked for me in the past, but if that doesn’t work, you can always use an HTML line break `</br>`

---

<div class="post-metadata">

**Author:** ![jkirkwood001](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jkirkwood001/32/54952_2.png) [@jkirkwood001](https://community.glideapps.com/u/jkirkwood001)\
**Post date:** [April 1, 2023, 9:26pm UTC](https://community.glideapps.com/t/last-line-in-rich-text-not-wrapping/59953/3 "2023-04-01T21:26:24Z")

</div>

Thanks Jeff.

I’ll try it, but I can’t bear to tell my app user’s for such a kludgy workaround! It’s like telling them only to only drive backwards to get to work. It’s a user form: they’d say “why?”

It’s a bug as far as I can tell.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 1, 2023, 10:38pm UTC](https://community.glideapps.com/t/last-line-in-rich-text-not-wrapping/59953/4 "2023-04-01T22:38:12Z")

</div>

I wouldn’t call it a bug. It’s the nature of how HTML works and has always worked since the beginning of the internet. It’s always been something to be aware of when working with HTML, because by nature it will eliminate any extra spaces.

One thing you could consider doing is create a Template column to wrap the content with PRE tags, which will display the text in a fixed width font, but will preserve spaced and line breaks as written. Like this:  
`<pre>{content}</pre>`

Another thing you could try doing is set up a template column that replaces carriage returns with

 or   
 tags so the user does ha e to do anything special.

> **[HTML pre tag](https://www.w3schools.com/tags/tag_pre.asp)**
>
> W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

> **[HTML p tag](https://www.w3schools.com/tags/tag_p.asp)**
>
> W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

> **[HTML br tag](https://www.w3schools.com/tags/tag_br.asp)**
>
> W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

---

<div class="post-metadata">

**Author:** ![jkirkwood001](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jkirkwood001/32/54952_2.png) [@jkirkwood001](https://community.glideapps.com/u/jkirkwood001)\
**Post date:** [April 2, 2023, 2:13pm UTC](https://community.glideapps.com/t/last-line-in-rich-text-not-wrapping/59953/5 "2023-04-02T14:13:59Z")

</div>

Thanks Jeff.

I’m confused. My CRLF work fine throughout the body of the text. Only the last line doesn’t wrap (sorry if my screen shots weren’t separated to make this clearer - top was input, bottom was output). That’s why I thought it was Glide and not a general HTML issue.

I guess I could use a calculated field to replace the last CRLF with something that works…?

Edit: I suddenly thought - is it because the last para has a comma, then CRLF, then last para? Is the rich text or HTML treating that last para differently because it ends with a comma (guess I could test easily enough!)

Thanks,  
J
