DEV Community

Matthew Dailey
Matthew Dailey

Posted on

9 1

How to fix extra list bullet in Outlook

Even though I don't code emails anymore, I wanted to share a fix for an Outlook bug I encountered awhile back. An extra unordered list bullet appears at the end of the list even though the code itself is correct and no empty <li> elements are present. I learned this particular bug happens when the unordered list is the last element in an editable region, say a table cell. A situation where an unordered list is the last element doesn't happen often, hence why I hadn't encountered it before. The workaround is to trick Outlook in thinking there is another element after the unordered list. Insert this code snippet directly after the closing </ul> tag: <div style="display:none;">&nbsp;</div>

Here's an example:

<p>Here is some text inside a paragraph tag</p>
<ul>
<li>List bullet 1</li>
<li>List bullet 2</li>
<li>List bullet 3</li>
</ul>
<div style="display:none;">&nbsp;</div>
Enter fullscreen mode Exit fullscreen mode

I hope this saves someone some time.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (4)

Collapse
 
kummerer94 profile image
Alexander Kammerer •

Amazing find and brillant of you to document that. We were going insane.

Collapse
 
zowiecanas profile image
zowiecanas •

Amazingly simple fix for an issue that would have had me up all night looking for a solution. Big thankyou!!

Collapse
 
temach_ru profile image
Artem Chukanov •

Love you man! It really works! So simply but soooo useful! And this trick really saved my time.
I saw that nobody thanked you yet and then deliberately created account here just to say THANK U.

Collapse
 
mdailey77 profile image
Matthew Dailey •

You're welcome. I'm really glad you found it useful.

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay