Insert commands add extra blank lines

Steps to reproduce

  • Place cursor on a new line surrounded by empty lines (as one would when inserting something):
    ## Foo
    
    %%cursor here%%
    
    ## Bar
    
  • Use one of the “Insert _” commands (specifically: Table, Callout or Horizontal rule)

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

Only desired object to be inserted, as it used to be.

Actual result

Depends on the specific command:

  • Table: inserts extra blank line above and below the inserted table
  • Callout: inserts extra blank line above and below the inserted table
  • Horizontal Rule: inserts two extra blank lines after the ruler
  • All other “Insert” commands (even multiline ones) seem to behave without any issues, curiously enough

Environment

SYSTEM INFO:
	Obsidian version: v1.8.4
	Installer version: v1.8.4
	Operating system: #1 SMP PREEMPT_DYNAMIC Fri, 17 Jan 2025 14:04:26 +0000 6.6.72-1-lts
	Login status: not logged in
	Language: en
	Insider build toggle: off
	Live preview: off
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

Additional information

This definitely worked without issues in 1.7

This also breaks things like inserting a nested callout (or a table), as the added uncalled for empty line in front makes it into a separate callout in a block quote, rather than a nested callout

I tested and they behaved the same in 1.7.7. I don’t see anything wrong with the the way they operate except with horizontal line that has a bug.

Inserting extra blank lines adds cleanup after using the commands, that’s the issue. For example, doing something simple like inserting a table and two callouts (what prompted me to file this) resulted in 6 unnecessary blank lines (which is almost 20% of the lines rendered on a 1080p screen).

I understand that this is not a breaking issue, however i assumed the commands in question are supposed to lower the amount of busywork, not add more of it…

Plus, like i said, it does break using these command to add a nested item inside of a callout, since added lines separate the callout and turn the place where the command was used into a standalone blockquote rather than the part of a callout.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.