anki-connect icon indicating copy to clipboard operation
anki-connect copied to clipboard

New line characters being replaced by spaces in guiAddCards fields

Open laith-m0 opened this issue 6 years ago • 2 comments

laith-m0 avatar Nov 08 '19 07:11 laith-m0

Anki fields accept HTML. Additionally, Anki does some optimizing, to reduce database space.

A newline in HTML (in most cases) is basically the same as a space. If you want a newline, you can wrap the text into a div-tag, or you can use a br-tag.

Seeing that this is the expected behavior, I think this can be closed.

hgiesel avatar Feb 17 '20 12:02 hgiesel

maybe using the pre-tag helps you

kur0n0-shuya avatar Nov 09 '20 13:11 kur0n0-shuya