On Thu, 9 Feb 2012, Stuart Rackham wrote:

On 09/02/12 00:47, Dag Wieers wrote:
 On Wed, 8 Feb 2012, Lex Trotman wrote:
>  On 8 February 2012 11:22, Stuart Rackham <[email protected]> wrote:
> >  Hi Dag, nice to see the progress.
> > > > I've attached a patch: > > > > - The line_break.py filter is no longer necessary (handled by > > replacements3
> >  substittion).
> >  
http://code.google.com/p/asciidoc/source/detail?r=05257f9b440922e8971a1e313df036b2d3a629c4
> > > > > > - strip() backend_opts in a2x.conf. > > > > Some time back I worked with Lex to add the {blockname} attribute for > > ODF
> >  nested paragraphs, did that work out?
> > It worked for me for the limited testing I was able to do. At the
>  moment I am not able to do much more, you know, that pesky real life
>  stuff.
> > I certainly would not call the results definitive until Dag has tried > it.

 It does not work. Except for the first line, every subsequent line starts
 with a
 space. (Every text:linebreak is continued by a text:s)

Could you please include a minimal example to illustrate the problem(s) (I'm not familiar with ODF markup). Along the lines:

This AsciiDoc block:

----
This is line 1
And this is line 2
----

Generates this in ODF

----
<text:p text:style="listingblock">This is line 1<text:linebreak/>And this is line 
2<text:linebreak/></text:p>
----

Which ends up looking like:

----
This is line 1
And this is line 2

----

Thanks to the trailing newline generating an empty line in the ODF output. This works correctly in souce-highlight. Not sure how to fix this in
[replacements3]


I am currently using this to reduce the number of whitespace constructs and not replacing single whitespaces helps in readability and filesize too:

 [replacements3]
 (\n|$)=<text:line-break/>
 \s{8}=<text:s text:c="8"/>
 \s{4}=<text:s text:c="4"/>
 \s{2}=<text:s text:c="2"/>

Thanks for your help,
--
-- dag wieers, [email protected], http://dag.wieers.com/
-- dagit linux solutions, [email protected], http://dagit.net/

[Any errors in spelling, tact or fact are transmission errors]

--
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to