stevencohn / OneMore

A OneNote add-in with simple, yet powerful and useful features
Mozilla Public License 2.0
2.65k stars 223 forks source link

Pressing "Enter" inside text and code boxes sometimes adds horizontal lines or moves the box down #1613

Closed cspotcode closed 1 month ago

cspotcode commented 1 month ago

Problem to Solve

I'm not sure if this is a OneMore bug, or simply a OneNote limitation that cannot be avoided.

When pressing "Enter" on the first line of a Code box, OneNote inserts a new table cell with a horizontal line.

image image

Doing the same on the first line of a Text box moves the box down, creates a blank line above it. image image

Highlighting text, putting it in a text box, then pressing "Enter" creates another table cell. image image image

To Reproduce

Hopefully screenshots above are clear, but I'm be happy to add detailed steps if they'll help.

Expected Behavior

Pressing enter inside the code or text box would ideally expand the box, never shift it or create new table cells.

These aren't the end of the world; I can learn to press Shift+Enter to avoid it. Is this an unavoidable limitation, because the only way to put a border around text is to make a table?

Screenshots

Included above.

Environment (if applicable)

stevencohn commented 1 month ago

The "box" commands are nothing more than a way to insert tables, sometimes single cell tables. This is just OneNote being OneNote.

cspotcode commented 1 month ago

Ok, thanks for confirming. I'll build muscle memory for Shift+Enter.