public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* newlines in ldesc
@ 2024-01-31 20:38 Jon Turney
  0 siblings, 0 replies; only message in thread
From: Jon Turney @ 2024-01-31 20:38 UTC (permalink / raw)
  To: cygwin-apps


We now have a few places where the long description (ldesc) for a 
package is used (in the package summary webpage, in the tooltip for the 
package description in setup, and now in any automatically generated 
announce email).

Unfortunately, it's underspecified exactly what a newline in ldesc 
means, and taking it literally causes problems when trying to render it 
nicely in those places. (Some heuristic hacks are already applied to it 
in the package summary webpage to try to make things look reasonable)

Therefore, I'm proposing to define that the following very minimal 
subset of MarkDown-compatible markup can be used in ldesc:

* A blank line separates paragraphs
* A line ending with two (or more spaces) is followed by a line break
* Lines starting with '-', '*', or '+' are bulleted lists
     - Sublists are indented by four spaces


(Technically, all of this also applies to the message: hint, being the 
only other hint which can take a multi-line value, but since that's only 
used by one package currently, that's not much of a concern)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-31 20:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-31 20:38 newlines in ldesc Jon Turney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).