Skip to content

Bug: Personal dictionary shortcuts with newlines output unknown characters #2407

@thomasfiala

Description

@thomasfiala

Description:
I am trying to create a Personal dictionary shortcut that includes newlines (e.g., a multi-line email signature). While the dictionary allows me to paste text with newlines and saves it correctly, using the shortcut results in unexpected characters instead of line breaks.

Steps to Reproduce:

  1. Type a multi-line text somewhere (e.g., in a notes app):
Best regards,

Thomas
  1. Select and copy the multi-line text.
  2. Open HeliBoard Settings -> Text correction -> Personal dictionary -> [Language] -> Add a word.
  3. Paste the copied text into the "Type a word" field.
  4. Enter a Shortcut (e.g., br) and save it.
  5. Note that the entry is displayed correctly (including the newlines) in the Personal dictionary list.
  6. Open any text field and type the shortcut (br) to trigger the replacement.

Expected Behavior:
The shortcut should expand to the original text, preserving the newlines:

Actual Behavior:
The shortcut expands, but the newlines are replaced with unknown/replacement characters (``). The output looks like this:
Best regards,��Thomas

Additional Context:

  • This exact procedure (copy-pasting multi-line text into the personal dictionary) works correctly and preserves newlines when using Gboard.
  • The newlines appear to be saved correctly in HeliBoard's settings UI, so the issue seems to occur during the actual text expansion/insertion into the active text field.
  • While showing up correctly in the Personal dictionary list, only the first line is shown in the "Edit word" dialogue "Type a word" field. Blind editing works, though. It would also be nice to expand the "Type a word" field in such cases.

App version
3.8 (from Fdroid)

Device:

  • Model: Samsung Galaxy S24
  • OS: Android version 16, One UI version 8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions