RST writer: fix backslash escaping after strings

The check whether a complex inline element following a string must be
escaped, now depends on the last character of the string instead of the
first.

Fixes: #5906
This commit is contained in:
Albert Krewinkel
2019-11-14 14:46:32 +01:00
parent 8ff7fd484f
commit e43c2e75a1
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -105,6 +105,9 @@ tests = [ testGroup "rubrics"
, "keeps quotes" =:
strong (str "f" <> doubleQuoted (str "d") <> str "l") =?>
"**f“d”l**"
, "backslash inserted between str and code" =:
str "/api?query=" <> code "foo" =?>
"/api?query=\\ ``foo``"
]
, testGroup "headings"
[ "normal heading" =: