@@ -230,19 +230,15 @@ wrapWithOffset maxWidth n xs =
230-- from display line index to text offset in the original text.
230-- from display line index to text offset in the original text.
231-- This is used to help determine how interactions with the displayed
231-- This is used to help determine how interactions with the displayed
232-- text map back to the original text.
232-- text map back to the original text.
233−-- For example, given the document @"AA\nBBB\nCCCCCCCC\n"@ wrapped to 5 columns,
233+-- For example, given the document @\"AA\\nBBB\\nCCCCCCCC\\n\"@ wrapped to 5 columns,
234-- this function will compute the offset in the original document of each character
234-- this function will compute the offset in the original document of each character
235-- in column 1:
235-- in column 1:
238−-- AA... (0, 0)
237+-- > AA... (0, 0)
239−-- BBB.. (1, 3)
238+-- > BBB.. (1, 3)
240−-- CCCCC (2, 7) -- (this line wraps to the next row)
239+-- > CCCCC (2, 7) -- (this line wraps to the next row)
241−-- CCC.. (3, 12)
240+-- > CCC.. (3, 12)
242−-- ..... (4, 16)
241+-- > ..... (4, 16)
247 :: [[Text]] -- ^ The outer list represents logical lines, and the
243 :: [[Text]] -- ^ The outer list represents logical lines, and the
248 -- inner list represents the display lines into which
244 -- inner list represents the display lines into which