Ticket #1217 (closed proposal: fixed)

Opened 6 years ago

Last modified 5 years ago

Add zeroText to Text.PrettyPrint.HughesPJ

Reported by: neil Owned by:
Priority: normal Milestone: Not GHC
Component: libraries/pretty Version:
Keywords: Cc: libraries@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

I propose the addition of Text.PrettyPrint?.HughesPJ.zeroText :: String -> Doc

This function is essential for outputting HTML which contains textual markup which occupies no space. For an example of it's use see:  http://darcs.haskell.org/yhc/src/libraries/core/Yhc/Core/Html.hs

One week for discussion

Attachments

zerotext.patch.gz Download (16.6 KB) - added by neil 6 years ago.
Proposed patch

Change History

Changed 6 years ago by neil

Proposed patch

Changed 5 years ago by NeilMitchell

Discussion stopped ages ago, but given the base split was going on at the time, I held off finishing this off. The final concensus was:

Yes, but call it zeroWidthText.

Various people admitted to including it in their pretty-printing libraries, or cloning other libraries.

Changed 5 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed
  • component changed from libraries/base to libraries/pretty

Fixed by

Thu Jun 26 17:16:47 BST 2008  benedikt.huber@gmail.com
  * Adds a `zeroWidthText' primitive to the library, in order to create text
  which occupies no space (e.g. html or latex tags).

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.