 diff --git a/pipenv/patched/prettytoml/tokens/py2toml.py b/pipenv/patched/prettytoml/tokens/py2toml.py
-index 82991958..2decd021 100644
+index 8299195..2decd02 100644
 --- a/pipenv/patched/prettytoml/tokens/py2toml.py
 +++ b/pipenv/patched/prettytoml/tokens/py2toml.py
 @@ -2,6 +2,7 @@

+            tokens.append(escapes[text[i]])
+            i += 1
+    return ''.join(tokens)


 def _to_string(token):

+
+    flush()
+    return ''.join(res)
 
 
 def _create_multiline_string_token(text):
diff --git a/pipenv/patched/prettytoml/tokens/toml2py.py b/pipenv/patched/prettytoml/tokens/toml2py.py
index 2bf9c1c..5680443 100644
--- a/pipenv/patched/prettytoml/tokens/toml2py.py
+++ b/pipenv/patched/prettytoml/tokens/toml2py.py
@@ -1,3 +1,4 @@
