This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Problem with PSGML auto formatting
- To: docbook-apps at lists dot oasis-open dot org
- Subject: Re: DOCBOOK-APPS: Problem with PSGML auto formatting
- From: "John R. Sheets" <dusk at ravendusk dot org>
- Date: Fri, 21 Jul 2000 14:24:06 -0500
- References: <20000623121033.E32166@ravendusk.org>
On Friday, June 23, 2000, "John R. Sheets" <dusk@ravendusk.org> wrote:
> I've been using PSGML + Emacs to mark up existing documentation for the
> Wine project, and so far it's working wonderfully. The only problem
> I've run into, however, is extremely vexing. It happens whenever I try
> to format the contents of an element with C-c C-q, if that element
> contains an element with an attribute. Thus, rather than getting
> this:
>
> <para>
> Before you begin, open the <filename
> class="directory">foodir</filename> in a file browser...
> </para>
>
> PSGML breaks the attribute at the first space and moves it down a line;
> it also fails to format the rest of that element:
>
> <para>
> Before you begin, open the <filename
> class="directory">foodir</filename>
> in a file browser...
> </para>
FYI, I finally figured it out (accidentally). It has nothing to do with
attributes. If a word (or element) is too long to wrap properly, PSGML
simply bails out without finishing the formatting. You can fix this by
increasing the fill column with set-fill-column until it wraps better.
In the example above, you'd have to set the fill column to include
"</filename>".
Kind of an ugly workaround, but it's nice to know what's causing it.
(c:
John
--
dusk@ravendusk.org http://www.gnome.org
jsheets@codeweavers.com http://www.worldforge.org
http://advogato.org/person/jsheets