Dataview inline fields always have line break after them

I want to display a property using an inline field. The field code is here:

they came to was `=this.planet`, which

The property value is the string “Neptune”. When in Preview and Reading mode it displays like this, with a line break after the field value “Neptune”. It does this for every inline field, and I can’t figure out why.

image

When I look at the HTML in Developer mode, it shows a “<br>” tag after the value. I don’t know where it’s getting that from.

Any ideas?

I tried your example, and I don’t have a problem. Maybe it is theme-related. Once, I had a similar problem (with <br>), and I solved it with a CSS snippet:

(something like that)

.dataview-inline-query br {
  display: none;
}

or

.dataview-inline-query {
  display: inline !important;
}

(one of these worked, not behind my computer to confirm)

Cheers, Marko :nerd_face:

Please provide information on which versions you’re using for Obsidian, the installer version and Dataview. I’ve never seen this behaviour.

Hello.

Is the <br> in the property itself (been copied and pasted accidentally, perhaps)?

---
planet: Neptune<br>
Neptune: planet
---

Welcome to `=this.planet`, dude

Wheres Neptune is a `=this.Neptune`, earthling.

I just updated Dataview to 0.5.68. Obsidian is 1.8.9. I disabled a bunch of CSS snippets that were active.

The weird thing is I have another vault, with a different set of plugins active, and the problem doesn’t appear.

I just disabled all the plugins I have installed, then reenabled them one by one. I reenabled Dataview, and the problem has gone away! I don’t know if it was an issue with another plugin - I’ll watch it if and when I reenable the other plugins.

I checked that, and it wasn’t included in the property.

1 Like

Found the culprit! It’s the plugin GitHub - shammond42/definition-list: Obsidian.md plugin to add HTML definition list support.

Not so bad to disable it, it was just a convenience really.

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