Spacing missing between tables

It seems like the correct spacing isn’t being rendered when there is a line break between tables.

| Table 1 | Col   |
| ------- | ----- |
| Row     | Value | 



| Table 2 | Col   |
| ------- | ----- |
| Row     | Value |

image

If there is text in between it renders correctly.

| Table 1 | Col   |
| ------- | ----- |
| Row     | Value | 

a

| Table 2 | Col   |
| ------- | ----- |
| Row     | Value |

image

SYSTEM INFO:
	Obsidian version: v1.4.1
	Installer version: v1.3.5
	Operating system: Darwin Kernel Version 22.6.0: Wed Jul  5 22:21:53 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6020 22.6.0
	Login status: logged in
	Catalyst license: insider
	Insider build toggle: on
	Live preview: off
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none
1 Like

Strange, I don’t see that behavior on my setup (default theme with some snippets) when I paste your example:

I also don’t see it in the Sandbox vault.

I see you’re on the Insider build and I’m not. I wouldn’t expect that to matter, but maybe it does?

Can’t replicate it on 1.4.1 either:
image

1 Like

Are you guys on macOS? I’m able to reproduce it on 1.4.2 in the sandbox vault.

macOS, Obsidian v1.4.2 Sandbox, font size: 30px

Switching between live preview and editing modes:

CleanShot 2023-08-01 at 11.59.30

3 Likes

Darnit. I promise I searched before posting this duplicate.

Still seeing this as of 1.4.4…

Did another test with 1.4.6 in the sandbox vault. What I think is the missing clue here is the difference in HTML between the editing and reading view:

image

Notice the left-hand side is the editing view, the right-hand side is reading view.

In the reading view, the two tables are plain HTML table tags surrounded by div tags and that’s it. So it would make sense that whitespace is stripped until they touch.

In the editing view, there’s an additional div wrapping a br tag, which accounts for the white space between the tables.

1 Like

This also seems to happen in Live Preview if 2 tables are present within a callout (whatever the amount of spaces between the 2 tables in the callout)

I’m not entirely sure how spaces works within callouts or if it’s useful in any way but, just in case, I thought I would mention it :innocent: .

From the SandBox Vault (Strict line breaks toggled Off):

Debug Info:

SYSTEM INFO:
	Obsidian version: v1.4.9
	Installer version: v1.4.5
	Operating system: Darwin Kernel Version 20.6.0: Thu Jul  6 22:12:47 PDT 2023; root:xnu-7195.141.49.702.12~1/RELEASE_X86_64 20.6.0
	Login status: logged in
	Catalyst license: supporter
	Insider build toggle: on
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 0
	Plugins enabled: 0

RECOMMENDATIONS:
	none

Just hopping in to say that this is still an issue in v1.5.0 (verified in the sandbox vault)

SYSTEM INFO:
	Obsidian version: v1.5.0
	Installer version: v1.4.13
	Operating system: Darwin Kernel Version 21.6.0: Thu Mar  9 20:08:59 PST 2023; root:xnu-8020.240.18.700.8~1/RELEASE_X86_64 21.6.0
	Login status: logged in
	Catalyst license: insider
	Insider build toggle: on
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none
1 Like

Can confirm :pensive:

In the meantime, as a workaround, I now tend to use a comment as a “table separator” to avoid this :sweat_smile:

| A | B |
| ---- | ---- |
| 1 | 2 |
| 3 | 4 |

%% Table separator %%

| C | D |
| ---- | ---- |
| 5 | 6 |
1 Like

Let me know if you still have this problem in 1.5.4 when it is released.