on develop help sign in
Haddock formatting fixes
commitd532c8e94bed2d5fbed99b2bffd082bcafe15426 authorAli Abrar <aliabrar@gmail.com> dateSun 4 Nov 2018, 11:43 (8 years ago) parent85ec064
1 file changed+6−10
src/Data/Text/Zipper.hs+6−10
src/Data/Text/Zipper.hs+6−10
@@ -230,19 +230,15 @@ wrapWithOffset maxWidth n xs =
230230-- from display line index to text offset in the original text.
231231-- This is used to help determine how interactions with the displayed
232232-- 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,
234234-- this function will compute the offset in the original document of each character
235235-- in column 1:
236−-- @
237236--
238−-- AA... (0, 0)
239−-- BBB.. (1, 3)
240−-- CCCCC (2, 7) -- (this line wraps to the next row)
241−-- CCC.. (3, 12)
242−-- ..... (4, 16)
243−--
244−--
245−-- @
237+-- > AA... (0, 0)
238+-- > BBB.. (1, 3)
239+-- > CCCCC (2, 7) -- (this line wraps to the next row)
240+-- > CCC.. (3, 12)
241+-- > ..... (4, 16)
246242offsetMap
247243 :: [[Text]] -- ^ The outer list represents logical lines, and the
248244 -- inner list represents the display lines into which