markdown-mode icon indicating copy to clipboard operation
markdown-mode copied to clipboard

Tables are reduced despite non breaking spaces

Open Louson opened this issue 2 years ago • 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

Louson avatar Jan 09 '23 14:01 Louson

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

syohex avatar Jan 10 '23 02:01 syohex

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                       |

Louson avatar Jan 10 '23 08:01 Louson