guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: makeinfo swallows page breaks


From: Ludovic Courtès
Subject: Re: makeinfo swallows page breaks
Date: Fri, 22 Mar 2013 11:56:55 +0100
User-agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux)

address@hidden (Ludovic Courtès) skribis:

> Regarding rendering: Andy noted that spaces after a sentence-ending
> periods are not preserved.  I’ve investigated, but there are tests that
> assume that whitespace is collapsed, so that will require more thought.

More precisely, Texinfo says (info "(texinfo) Multiple Spaces"):

  Ordinarily, TeX collapses multiple whitespace characters (space, tab,
  and newline) into a single space.  Info output, on the other hand,
  preserves whitespace as you type it, except for changing a newline into
  a space; this is why it is important to put two spaces at the end of
  sentences in Texinfo documents.

So I believe that it means that stexi should preserve whitespace (which
it doesn’t currently), and that it’s the renderer’s job to trim
whitespace or not.

Tests in texinfo.test will have to be adjusted accordingly.

Currently, the parser consumes whitespace:

  scheme@(guile-user)> (texi-fragment->stexi "foo.  bar.")
  $2 = (*fragment* (para "foo. bar."))

WDYT?

Ludo’.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]