OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Line breaks in para: literallayout unsuitable


My understanding is that the idea of a "line-break" is more a "presentation"
concern, whereas the whole purpose of DocBook is one of structuring a
document in terms of "content". While the distinction may seem subtle, it is
rather important.

Thus, the better question might be, Is your desire for a "line-break"
critical to the content of your document, or is it a "presentation" concern
(i.e. - important only after using the stylesheets to create your
html/pdf/etc)? If it is critical to your content, then it might be better to
break the item into two <para> tags. Alternatively, you could try putting in
a "blank" <literllayout> in this fashion:
<para>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque sit
amet mauris ac sem condimentum elementum. Aenean nonummy pharetra dolor. Ut
consectetuer, felis eget adipiscing laoreet, enim lectus fringilla pede,
sagittis interdum libero dolor at dolor. Suspendisse ut magna vitae turpis
faucibus pharetra. Fusce id lorem. Etiam accumsan tempor ligula. Suspendisse
auctor elementum turpis.
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere
cubilia Curae; Proin dui mi, luctus vel, commodo a, pellentesque sit amet,
ante. Integer arcu. Proin accumsan, mi in consequat consequat, tellus justo
suscipit metus, quis malesuada libero augue a sapien. Donec wisi. Mauris
vitae enim. Fusce tortor. Curabitur viverra sapien ac libero. Integer elit
ante, cursus in, posuere malesuada, vehicula facilisis, erat. Pellentesque
habitant morbi tristique senectus et netus et malesuada fames ac turpis
egestas. Aliquam ultrices nisl et nibh.</para>
This should give you the "line-break" that you need. Again, however, it
appears that your need for a "line-break" is a presentation aspect rather
than an aspect of creating structured content.

I hope that helps!

- Dan Gilleland

----- Original Message ----- 
From: "Frans Englich" <frans.englich@telia.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Thursday, July 29, 2004 11:29 AM
Subject: [docbook-apps] Line breaks in para: literallayout unsuitable

> Hello all,
> Sometimes it is of interest to make a paragraph lighter by inserting a
> break -- like two paragraphs but without an empty line inbetween. Judging
> from a google search, the correct way of doing this is to encapsulate the
> text in the literallayout element.
> A problem with this(if I got everything right) is it interprets everything
> literally -- if a paragraph is word wrapped in the source file this will
> up too. literallyout is quite constraining for inserting a line break.
> Why doesn't a simple <line-break/> element exist(with a better name)? It
> be possible to express in a logical way(just as much as para). Why doesn't
> exist?
> Or what have I missed?
> Frans

Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.725 / Virus Database: 480 - Release Date: 7/19/2004

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]