jrblevin/markdown-mode

Tables are reduced despite non breaking spaces

Opened this issue · 2 comments

Expected Behavior

I build a table using non-breaking spaces after Name to force the 'Name' column width :

| Date       | Name                       |
|  ---------- |-------------------------- |
| dddd | Name |

If I press tab, the non-breaking spaces shall remain.

Actual Behavior

Non-breaking spaces are deleted


| Date | Nom  |
|------|------|
| dddd | Name |

Software Versions

  • GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6) of 2022-09-12
  • markdown-mode, version 2.5

How about (setq markdown-table-align-p nil) ?

Sorry, let me detail the expected behaviour (I don't want to disable alignment)

I believe the result after 'tab' should be:

| Date       | Name                       |
| ---------- |--------------------------- |
| dddd       | Name                       |