You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Jan Ortmann <ja...@faktorzehn.de> on 2005/05/24 23:09:01 UTC

Sourcecode Indentation Using OpenOffice

Hello,

I'm writing documents for my project site using OpenOffice (1.1.4) and 
the provided Forrest styles from the OpenOffice template, e.g. 
Forrest:Source for sourcecode.
However I couldn't get a proper identation in the generated HTML and 
PDFs. I've tried to indent the code with tabs and with spaces. There is 
also no box around the sourcecode.

I'm using Forrest 0.6. Any ideas?

Thanks
Jan

Re: Sourcecode Indentation Using OpenOffice

Posted by Ross Gardler <rg...@apache.org>.
Cyriaque Dupoirieux wrote:
> Thank you Ross for your comment,
> 
>    I have a similar problem - using the plug in - with the 
> forrest:source style, the plug in generally ignore the return carriage 
> (not the Paragraph!).
>    I have to retype it or to take a sample which works, but I don't know 
> what's the problem.
>    Can I do the same and ask for a file filename.xml to see the XDoc ?

Yes, you can do this with any document to see the intermediate
processing of the file.

>    And where can I find this file ?

'forrest run'
http://localhost:8888/filename.xml

Ross

> 
> Regards,
> Cyriaque,
> 
> 
> Ross Gardler a écrit :
> 
>> Jan Ortmann wrote:
>>
>>> Hello,
>>>
>>> I'm writing documents for my project site using OpenOffice (1.1.4) 
>>> and the provided Forrest styles from the OpenOffice template, e.g. 
>>> Forrest:Source for sourcecode.
>>> However I couldn't get a proper identation in the generated HTML and 
>>> PDFs. I've tried to indent the code with tabs and with spaces. There 
>>> is also no box around the sourcecode.
>>>
>>> I'm using Forrest 0.6. Any ideas?
>>
>>
>>
>> The OOo support needs work. Can you help? Yes you can, by helping us 
>> diagnose the problem and, if you have the skills and time providing a 
>> patch once we've found the issue.
>>
>> First, lets diagnose the problem. If you request filename.xml rather 
>> than filename.html you will be shown the XDoc that Forrest generates 
>> from your document. Can you do that and fee what your Forrest:source 
>> content looks like. Post a snippet of the resulting code here if you can.
>>
>> Note, in 0.7 the OOo stuff is migrating out to a plugin. This will 
>> make it much easier to work with.
>>
>> Ross
>>
>>
> 
> 





Re: Sourcecode Indentation Using OpenOffice

Posted by Cyriaque Dupoirieux <Cy...@pcotech.fr>.
Thank you Ross for your comment,

    I have a similar problem - using the plug in - with the 
forrest:source style, the plug in generally ignore the return carriage 
(not the Paragraph!).
    I have to retype it or to take a sample which works, but I don't 
know what's the problem.
    Can I do the same and ask for a file filename.xml to see the XDoc ?
    And where can I find this file ?

Regards,
Cyriaque,


Ross Gardler a écrit :

> Jan Ortmann wrote:
>
>> Hello,
>>
>> I'm writing documents for my project site using OpenOffice (1.1.4) 
>> and the provided Forrest styles from the OpenOffice template, e.g. 
>> Forrest:Source for sourcecode.
>> However I couldn't get a proper identation in the generated HTML and 
>> PDFs. I've tried to indent the code with tabs and with spaces. There 
>> is also no box around the sourcecode.
>>
>> I'm using Forrest 0.6. Any ideas?
>
>
> The OOo support needs work. Can you help? Yes you can, by helping us 
> diagnose the problem and, if you have the skills and time providing a 
> patch once we've found the issue.
>
> First, lets diagnose the problem. If you request filename.xml rather 
> than filename.html you will be shown the XDoc that Forrest generates 
> from your document. Can you do that and fee what your Forrest:source 
> content looks like. Post a snippet of the resulting code here if you can.
>
> Note, in 0.7 the OOo stuff is migrating out to a plugin. This will 
> make it much easier to work with.
>
> Ross
>
>

Re: Sourcecode Indentation Using OpenOffice

Posted by Ross Gardler <rg...@apache.org>.
Jan Ortmann wrote:
> Hello,
> 
> I'm writing documents for my project site using OpenOffice (1.1.4) and 
> the provided Forrest styles from the OpenOffice template, e.g. 
> Forrest:Source for sourcecode.
> However I couldn't get a proper identation in the generated HTML and 
> PDFs. I've tried to indent the code with tabs and with spaces. There is 
> also no box around the sourcecode.
> 
> I'm using Forrest 0.6. Any ideas?

The OOo support needs work. Can you help? Yes you can, by helping us 
diagnose the problem and, if you have the skills and time providing a 
patch once we've found the issue.

First, lets diagnose the problem. If you request filename.xml rather 
than filename.html you will be shown the XDoc that Forrest generates 
from your document. Can you do that and fee what your Forrest:source 
content looks like. Post a snippet of the resulting code here if you can.

Note, in 0.7 the OOo stuff is migrating out to a plugin. This will make 
it much easier to work with.

Ross