git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] send-email: Fix Pine address book parsing

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 26, 2008, 19:46 UTC
Message-ID
<7vwseqfeyg.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<Pine.LNX.4.64.0811260243440.5161@t2.domain.actdsltmp>
Trent Piepho <tpiepho@freescale.com> writes:
Show 8 quoted lines
> ...  There isn't any code that just does line wrapping. 
> The code that prints out a address book entry will at various points check
> if it should output a newline.  And it whatever it prints after those
> points isn't allowed to start with space.  The code that reads the entries
> eats all the spaces before and after each field.  If long comments are
> wrapped, it will change "a   b" into "a\n :  b\n" and effectively does 
> s/^ +: / /; when reading it back.  But email address don't get wrapped
> that way so we don't need to care about the ':'.

I never was worried about eating and losing the leading space that was used only to signal the continuation line, but was wondering if we need to insert an artificial space in place of the newline we are eating, but it appears that we can say with confidence that worry is unfounded.

Will queue.  Thanks.
Previous: Trent Piepho
Message 6 of 6 in “send-email: Fix Pine address book parsing”
  1. send-email: Fix Pine address book parsingTrent Piepho, Nov 26, 2008
  2. Junio C HamanoNov 26, 2008
  3. Trent PiephoNov 26, 2008
  4. Junio C HamanoNov 26, 2008
  5. Trent PiephoNov 26, 2008
  6. Junio C HamanoNov 26, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.