My big main vault has a dv.el("span","text") issue, I can't figure out what's wrong

Hi,

i try to found a solution for some hours.

i disable all snipets, activate the default theme, take a look in the console.
copy app.css from test to doku.utf8 without change.

in the console elements view i can see a diff between my test and doku.utf8 vault.

in the span tag after the word “Meeting:” there are two br br before the span end tag
that occurs also in the span “on” and “today”

I simplified the script a bit, normally there are variables dv.file dv.date etc. between the spans

I would be grateful for a tip on how to solve this

Why don’t you rather do something like: dv.span(`Meeting: ${ myPeople } on ${ myTopic } ${ myDate }`) ?

Not sure what really happens when you do add those dv.el() stuff together. In any case, it would be normal to rather do dv.el(...) ; dv.el(...), dv.el(...). That is to not add them together, but allow them to be their own statements.

Thanks.
My complete line looks like this

dv.el("span","Meeting: ") + 
dv.el("b",dv.current().file.name) + 
dv.el("span"," on ") +
dv.el("i",dv.current().file.cday) + 
dv.el("span"," ") + 
dv.el("div",dv.date('today'), { cls: "ar" }); 

what is the correct $ syntax for dv.current().file.name ?
and how can i set it in bold?

Regardless, I’ll take a look at my backup from the weekend, tomorrow to see if the problem already existed there. If not, I’ll try restoring the .obsidian folder.