# Bug: Text file import does not recognize quoted multi-lines

**URL:** <https://forums.ankiweb.net/t/bug-text-file-import-does-not-recognize-quoted-multi-lines/28226>\
**Category:** Help\
**Created:** [March 6, 2023, 11:51pm UTC](https://forums.ankiweb.net/t/bug-text-file-import-does-not-recognize-quoted-multi-lines/28226 "2023-03-06T23:51:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ewiden](https://avatars.discourse-cdn.com/v4/letter/e/edb3f5/32.png) [@ewiden](https://forums.ankiweb.net/u/ewiden)\
**Post date:** [March 6, 2023, 11:51pm UTC](https://forums.ankiweb.net/t/bug-text-file-import-does-not-recognize-quoted-multi-lines/28226/1 "2023-03-06T23:51:45Z")

</div>

Text file import function on version 2.1.60 fails to recognize the multi-line field in text files of the form

```auto
foo; "a single line answer"
bar; "a multi
line answer"
foofoo; "barbar"

```

It does instead interpret `line answer` as a separate note to import.  
This problem does not happen when importing the same file using the “Legacy import/export handling” in the preferences (editing tab).

I’m using the Mac (intel) version.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [March 7, 2023, 7:19am UTC](https://forums.ankiweb.net/t/bug-text-file-import-does-not-recognize-quoted-multi-lines/28226/2 "2023-03-07T07:19:49Z")

</div>

I suspect it will work if you remove the leading space before the quote character. Older Anki versions may have accepted your file, but it’s not valid according to the CSV spec.

---

<div class="post-metadata">

**Author:** ![ewiden](https://avatars.discourse-cdn.com/v4/letter/e/edb3f5/32.png) [@ewiden](https://forums.ankiweb.net/u/ewiden)\
**Post date:** [March 7, 2023, 3:10pm UTC](https://forums.ankiweb.net/t/bug-text-file-import-does-not-recognize-quoted-multi-lines/28226/3 "2023-03-07T15:10:22Z")

</div>

Thank you, dae, very much appreciated! That did indeed solve the problem.

However, the online manual (docs ankiweb net importing.html) still suggests the non-working syntax with the white space before the quote. I don’t know if that deserves a separate post or if you have any (contacts with) power over the manual content.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [March 9, 2023, 8:21am UTC](https://forums.ankiweb.net/t/bug-text-file-import-does-not-recognize-quoted-multi-lines/28226/4 "2023-03-09T08:21:57Z")

</div>

Thanks for letting me know, I’ve updated the docs.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [April 8, 2023, 8:22am UTC](https://forums.ankiweb.net/t/bug-text-file-import-does-not-recognize-quoted-multi-lines/28226/5 "2023-04-08T08:22:11Z")

</div>

Closed on April 8, 2023, 8:22am UTC

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