# Writer: text underline - preview and print - bug? Regression?

**URL:** <https://forum.collaboraonline.com/t/writer-text-underline-preview-and-print-bug-regression/2001>\
**Category:** Writer\
**Tags:** resolved, answered\
**Created:** [August 11, 2023, 10:51am UTC](https://forum.collaboraonline.com/t/writer-text-underline-preview-and-print-bug-regression/2001 "2023-08-11T10:51:47Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![guarom](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@guarom](https://forum.collaboraonline.com/u/guarom)\
**Post date:** [August 11, 2023, 10:51am UTC](https://forum.collaboraonline.com/t/writer-text-underline-preview-and-print-bug-regression/2001/1 "2023-08-11T10:51:47Z")

</div>

After the last update (from Windows) I have seen a bug that I remember appearing (I guess…) many years ago with Libre office.  
If I underline text in writer, the underline is not always exact. preview is even worse.  
However, if I print the document, it prints (apparently) correctly.  
I tested it with just a few words underlined and with all text underlined.  
I attach the document and the screenshots of how I view it on the screen in writer and in preview.

 ![Immagine 2023-08-11 123842](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/1X/199e455d39d9ae5486b4f26161718f350e1050b9.png)  
[Writer text.odt](https://forum.collaboraonline.com/uploads/short-url/c11Msf5VHp0lqaq3qHOI2hZNyi.odt) (13.4 KB)  
 ![Immagine 2023-08-11 124357](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/1X/245e767c3833d14a51f88a6d9e197cce8db79c5a.png)  
 ![Immagine 2023-08-11 124412](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/1X/28c1c4026d766c2dffba4e8202c04fb1c7732dea.png)  
 ![Immagine 2023-08-11 124430](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/1X/ddb1d7e2154bb9500200f6867d17706ed10d04a1.png)

---

<div class="post-metadata">

**Author:** ![guarom](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@guarom](https://forum.collaboraonline.com/u/guarom)\
**Post date:** [August 11, 2023, 10:52am UTC](https://forum.collaboraonline.com/t/writer-text-underline-preview-and-print-bug-regression/2001/2 "2023-08-11T10:52:24Z")

</div>

![Immagine 2023-08-11 124450](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/1X/8cf2c0c1591aa792cffdb128956103e95c615e6f.png)  
 ![Immagine 2023-08-11 124531](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/1X/040918cc9f40524c427257c0ecee51601eb30ef9.png)  
 ![Immagine 2023-08-11 124545](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/1X/8b096d051529a56e3bb7a37c844932e0a2897f2c.png)  
[Writer text2.odt](https://forum.collaboraonline.com/uploads/short-url/iQ3EF5NPX6wHUYIueNmdxio8uzR.odt) (14.2 KB)

---

<div class="post-metadata">

**Author:** ![guarom](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@guarom](https://forum.collaboraonline.com/u/guarom)\
**Post date:** [August 11, 2023, 10:53am UTC](https://forum.collaboraonline.com/t/writer-text-underline-preview-and-print-bug-regression/2001/3 "2023-08-11T10:53:01Z")

</div>

I am also attaching a scan of the printout

 ![print_page-0001](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/1X/a54e748873334b84e499be7df445bddb63425736.jpeg)

---

<div class="post-metadata">

**Author:** ![GOhrner](https://avatars.discourse-cdn.com/v4/letter/g/b9e5f3/32.png) [@GOhrner](https://forum.collaboraonline.com/u/GOhrner)\
**Post date:** [August 11, 2023, 1:01pm UTC](https://forum.collaboraonline.com/t/writer-text-underline-preview-and-print-bug-regression/2001/4 "2023-08-11T13:01:57Z")

</div>

@guarom: Your screenshots indicate that it happens with the Desktop software Collabora Office, so you chose the wrong forum. (Collabora Online is Collabora’s web-based online office solution.)

You may want to move your posting to the correct forum or repost in the correct forum to get better answers.

---

<div class="post-metadata">

**Author:** ![guarom](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@guarom](https://forum.collaboraonline.com/u/guarom)\
**Post date:** [August 11, 2023, 1:22pm UTC](https://forum.collaboraonline.com/t/writer-text-underline-preview-and-print-bug-regression/2001/5 "2023-08-11T13:22:42Z")

</div>

Where? 🙈  
Can you redirect me?

---

<div class="post-metadata">

**Author:** ![Tex](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@Tex](https://forum.collaboraonline.com/u/Tex)\
**Post date:** [August 14, 2023, 7:23am UTC](https://forum.collaboraonline.com/t/writer-text-underline-preview-and-print-bug-regression/2001/6 "2023-08-14T07:23:43Z")

</div>

> [@guarom](#):
>
> I attach the document and the screenshots

Thanks @guarom,

And in:

- **Help \> About** info

Can you press the “Copy” button + Paste it here?

That will be better than having the version+build# hidden in your screenshot.

Much easier to debug or search if all the version info is pasted as text. 🙂

> [@guarom](#):
>
> If I underline text in writer, the underline is not always exact. preview is even worse.

I think this is an issue from LibreOffice core. I don’t know the exact cause, but it seems like this bug got introduced _very_ recently.

2 weeks ago, someone had very similar problems on the LibreOffice subreddit after upgrading to a recent LO 7.5 version:

- [/r/LibreOffice: “Underline doesn’t work properly”](https://www.reddit.com/r/libreoffice/comments/15h04k4/underline_doesnt_work_properly/)

His screenshots look almost exactly like yours! Where:

- The underline only goes most-of-the-way-under a word, then cuts off.

In my testing of your ODT, it looks like this:

- Only occurs at certain zoom levels.

If I’m zooming in-and-out, you can see the underline acting very oddly, stretching/shrinking beyond the words too.

This is my LO information:

> Version: 7.5.5.2 (X86\_64) / LibreOffice Community  
> Build ID: ca8fe7424262805f223b9a2334bc7181abbcbf5e  
> CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win  
> Locale: en-US (en\_US); UI: en-US  
> Calc: CL threaded

* * *

**Edit:** It looks like it might be this exact bug!

- [156681 – The underline line in Writer doesn't match the length of the sentence, even in simple cases](https://bugs.documentfoundation.org/show_bug.cgi?id=156681)

Looks like it happened between LO 7.5.4 + 7.5.5, so it happened within the last month!

Exact cause isn’t found yet, but I would follow that LibreOffice bug report and wait for the fix. 🙂

Once the fix gets into LibreOffice, it should get pushed to Collabora Office soon after as well. 🙂

* * *

**Edit #2:** I submitted your document + some screenshots to the LibreOffice Bugzilla.

Thanks so much for the document + report, @guarom !

* * *

> [@GOhrner](#):
>
> Your screenshots indicate that it happens with the Desktop software Collabora Office, […]
> 
> […]
> 
> You may want to move your posting to the correct forum or repost in the correct forum to get better answers.

It’s okay here.

There is no specific “Collabora Office” (Desktop) subforum, so this User Support section works.

In the future, if there are many Collabora Office questions, then those can be split into their own separate section if needed. 🙂

---

<div class="post-metadata">

**Author:** ![guarom](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@guarom](https://forum.collaboraonline.com/u/guarom)\
**Post date:** [August 16, 2023, 7:50pm UTC](https://forum.collaboraonline.com/t/writer-text-underline-preview-and-print-bug-regression/2001/7 "2023-08-16T19:50:17Z")

</div>

Of course!!! I forgot! Excuse me…

here it is:

Version: 23.05.2.3 (X86\_64)  
Build ID: 36c0cf311589a2d30705e299a7ce73882c6fb6de  
CPU threads: 8; OS: Windows 10.0 Build 22000; UI render: Skia/Raster; VCL: win  
Locale: it-IT (it\_IT); UI: it-IT  
Calc: threaded

---

<div class="post-metadata">

**Author:** ![guarom](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@guarom](https://forum.collaboraonline.com/u/guarom)\
**Post date:** [August 16, 2023, 7:53pm UTC](https://forum.collaboraonline.com/t/writer-text-underline-preview-and-print-bug-regression/2001/8 "2023-08-16T19:53:21Z")

</div>

I think the bug you found is roughly the same! Great!

---

<div class="post-metadata">

**Author:** ![Tex](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@Tex](https://forum.collaboraonline.com/u/Tex)\
**Post date:** [August 17, 2023, 7:59pm UTC](https://forum.collaboraonline.com/t/writer-text-underline-preview-and-print-bug-regression/2001/9 "2023-08-17T19:59:40Z")

</div>

And, just a few hours ago, the exact change was found! 🙂

The regression was accidentally introduced while an LO developer was fixing an Arabic underline issue.

They are currently discussing what the best solution might be.

Now that they know the exact thing that caused it, no doubt it’ll be fixed very soon. 🙂

---

<div class="post-metadata">

**Author:** ![guarom](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@guarom](https://forum.collaboraonline.com/u/guarom)\
**Post date:** [August 17, 2023, 8:16pm UTC](https://forum.collaboraonline.com/t/writer-text-underline-preview-and-print-bug-regression/2001/10 "2023-08-17T20:16:14Z")

</div>

I vaguely remembered having encountered the same problem many versions ago of Lo… that’s why I took the liberty of writing about a regression…  
or maybe i’m wrong… 😅

and you are really good at identifying problems and solutions!  
it’s encouraging to see how all of you are working to fix the bugs! great! 👍🥳🙂

---

<div class="post-metadata">

**Author:** ![bearon](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@bearon](https://forum.collaboraonline.com/u/bearon)\
**Post date:** [August 23, 2023, 1:16pm UTC](https://forum.collaboraonline.com/t/writer-text-underline-preview-and-print-bug-regression/2001/11 "2023-08-23T13:16:13Z")

</div>

This is now fixed by reverting the regression in the stable branches, including `distro/collabora/co-23.05`, which is used for Collabora Office / Collabora Online.

---

<div class="post-metadata">

**Author:** ![guarom](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@guarom](https://forum.collaboraonline.com/u/guarom)\
**Post date:** [August 26, 2023, 2:17pm UTC](https://forum.collaboraonline.com/t/writer-text-underline-preview-and-print-bug-regression/2001/12 "2023-08-26T14:17:19Z")

</div>

Great! 🥳  
Will be soon an upgrade with the fix?

---

<div class="post-metadata">

**Author:** ![mmeeks](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/mmeeks/32/371_2.png) [@mmeeks](https://forum.collaboraonline.com/u/mmeeks)\
**Post date:** [August 28, 2023, 2:18pm UTC](https://forum.collaboraonline.com/t/writer-text-underline-preview-and-print-bug-regression/2001/13 "2023-08-28T14:18:23Z")

</div>

We expect a new release sometime this week 🙂

---

<div class="post-metadata">

**Author:** ![guarom](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@guarom](https://forum.collaboraonline.com/u/guarom)\
**Post date:** [September 21, 2023, 8:20am UTC](https://forum.collaboraonline.com/t/writer-text-underline-preview-and-print-bug-regression/2001/14 "2023-09-21T08:20:36Z")

</div>

HI! I updated CO but the end-of-line underline problem still occurs minimally.  
The line is more precise at the end of the line but does not collide correctly.  
If I change the zoom the effect also changes.  
The line is not totally offset, but tends to remain halfway/through three-quarters of the last letter of the line.  
If I can, I’ll try to attach a new document.  
The problem is currently on a working document and I need to find the time to create a suitable one… 😉

Version: 23.05.4.2 (X86\_64)  
Build ID: 979bacbb37b1ea1b42f739ea0d4a0ed22a3088f4  
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win  
Locale: it-IT (it\_IT); UI: it-IT  
Calc: CL threaded

---

<div class="post-metadata">

**Author:** ![guarom](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@guarom](https://forum.collaboraonline.com/u/guarom)\
**Post date:** [September 21, 2023, 8:29am UTC](https://forum.collaboraonline.com/t/writer-text-underline-preview-and-print-bug-regression/2001/15 "2023-09-21T08:29:11Z")

</div>

Any examples…  
If I look at the preview you can also see it and it changes depending on the zoom  
[Example2.odt](https://forum.collaboraonline.com/uploads/short-url/x8ZCQdNIaC8YDeLjTZhvSJbrzZn.odt) (524.1 KB)  
[Example.odt](https://forum.collaboraonline.com/uploads/short-url/dlwa7qbSTMKb5LVpK1DQjFIBzv4.odt) (19.5 KB)  
[Example3.odt](https://forum.collaboraonline.com/uploads/short-url/nezEsenKYjZSCph2KlNpSVw2RnW.odt) (19.6 KB)

---

<div class="post-metadata">

**Author:** ![guarom](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@guarom](https://forum.collaboraonline.com/u/guarom)\
**Post date:** [September 21, 2023, 9:08am UTC](https://forum.collaboraonline.com/t/writer-text-underline-preview-and-print-bug-regression/2001/16 "2023-09-21T09:08:57Z")

</div>

I now notice that if you underline the text and highlight/select it, it is more evident that the underline line does not reach the end of the last letter.  
It was an experiment… 😉  
[Example3 selection.odt](https://forum.collaboraonline.com/uploads/short-url/nSqpgjnMVYPqhOcpeiFiQ4FsDZf.odt) (535.4 KB)
