On 12/28/05, Paul S. Person <[EMAIL PROTECTED]> wrote:
> > On 12/27/05, Paul S. Person <pspemail <at> earthlink.net> wrote:
> > > When I Publish a document containing the lines
> > > <ul>
> > > <li>
> > > <strong>strong</strong><em>em</em><cite>cite</cite><code>code</code>
> > > </li>
> > > </ul>
> > >
> > > Which displays in BXE (except that, in BXE, "strong" would be bold, "em"
> > > in
> > > italics, "cite" in italics, and "code", with my CSS, in monospaced courier
> > > new) as
> > > strongemcitecode
> > > (that is, with no spaces between the elements).
> > >
> > > After saving the page in and exiting from BXE, Submit and Publish /change
> > > the file/ so that it looks like this:
> > > <ul>
> > > <li>
> > > <strong>strong</strong>
> > > <em>em</em>
> > > <cite>cite</cite>
> > > <code>code</code>
> > > </li>
> > > </ul>
> > > and displays (again, "strong", "em", "cite" and "code" each has the proper
> > > appearance) as
> > > strong em cite code
> > > (that is, with spaces between the elements).
> > > So, the problem appears to me to be that Lenya's Publish function is
> > > introducing an unwelcome and unwanted reformatting to my document. I
> > > know even less about how Lenya's Publish function works than I do
> > > about HTML or CSS. And I don't know much about HTML or CSS at all.
> "how do I prevent Lenya from inserting
> white space when it publishes my page". Lenya undeniably inserts
> newlines when the page is published. If Lenya did not insist
> on moving the different elements to different lines in the file,
> the browser would behave as I wish.
>
> I confirmed this by using Wordpad to add or remove the newlines
> manually and then reloading the page. Since the browser is working
> correctly, there is no doubt that the problem lies with Lenya. Or
> perhaps the problem lies with Cocoon. Or, for all I know, is required
> behavior for translators (in which case no cure is possible). Part of
> the problem is that learning HTML is not enough: CSS, XML, XHTML, XSL,
> XSLT ... the list is endless and I am not likely to learn them all
> quickly enough to solve this myself.
That is why we are here. While you will probably learn (or at least
be able to research issues with) many technologies, this ML provides
access to people who have already mastered them. And in this case, it
is our bug that needs fixing.
===
Dear Everybody,
I duplicated this issue.
Lenya 1.2.2 with Kupu:
TEST: prefix<em><strong>text</strong></em>suffix
Saves correctly.
Authoring SHOWS: prefixtextsuffix
Submit.
Publish.
Source BECOMES:
<em>
<strong>text</strong>
</em>
SHOWS: prefix text suffix
The change is immediately obvious in the Authoring section. Something
is processing and saving the Authoring document before it is copied to
Live.
SOURCE: org.apache.lenya.xml.DocumentHelper
protected static Transformer getTransformer(DocumentType documentType)
throws TransformerConfigurationException {
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer();
transformer.setOutputProperty("indent", "yes");
transformer.setOutputProperty("method", "xml");
if(documentType != null) {
transformer.setOutputProperty("doctype-public",
documentType.getPublicId());
transformer.setOutputProperty("doctype-system",
documentType.getSystemId());
}
return transformer;
}
"indent" may be "yes" or "no". "yes" allows additional whitespace.
Would someone please test setting it to "no"?
(I do not have a development environment for recompiling yet.)
solprovider
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]