I seem to have another problem with rST export.

Until recently, rst3, with the following file:

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet ekr_test?>
<leo_file>
<leo_header file_format="2" tnodes="0" max_tnode_index="0"
clone_windows="0"/>
<globals body_outline_ratio="0.5">
        <global_window_position top="20" left="20" height="600" width="800"/>
        <global_log_window_position top="0" left="0" height="0" width="0"/>
</globals>
<preferences/>
<find_panel_settings/>
<vnodes>
<v t="huesingjohannes.20090706083342.1221"
str_leo_pos="1"><vh>@chapters</vh></v>
<v t="huesingjohannes.20090706083342.1220" a="E"><vh>@rst U:\leo
\hello.html</vh>
<v t="huesingjohannes.20090706083342.5924"><vh>Greet the world</vh></
v>
</v>
</vnodes>
<tnodes>
<t tx="huesingjohannes.20090706083342.1220">@ @rst-options
verbose=True
code_mode=True
show_doc_parts_as_paragraphs=True
number_code_lines=False

@c

</t>
<t tx="huesingjohannes.20090706083342.1221"></t>
<t tx="huesingjohannes.20090706083342.5924">@
     Greet the world, politely
@c

g.es ("Hello, world")</t>
</tnodes>
</leo_file>

would export the code in a different kind of markup than the comments.

Currently, the HTML export is as follows:

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.6: http://docutils.sourceforge.net/";
/>
<title>Greet the world</title>
<style type="text/css">

/*
:Author: David Goodger (good...@python.org)
:Id: $Id: html4css1.css 5951 2009-05-18 18:03:10Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Lots of style, deleted
*/


</style>
</head>
<body>
<div class="document" id="greet-the-world">
<h1 class="title">Greet the world</h1>

<!-- rst3: filename: U:\leo\hello.html -->
<p>Greet the world, politely**code**:.. class:: code..::   g.es
(&quot;Hello, world&quot;)</p>
</div>
</body>
</html>

As can be seen, no special markup is used for code.

How do I have to set the options such that the code would be set into
a paragraph of its own, with class=code or the like?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to