Hello Bruce.

I am more or less a newbie to all this, just interested in the problem,
excuse me if I'll be talking nonsense.  Just a try.

Am Samstag, 10. März 2007 20:52 schrieb J. Bruce Fields:
> I'm trying to format diagrams that looks like:
>
>          o--o--o <-- Branch A
>         /
>  o--o--o <-- master
>         \
>          o--o--o <-- Branch B

I tried to reproduce your output.  But here everything works, this is a
opensuse 10.2.  Please compare my input, below the ~~~line.

   I looked into the source code of your htmlfile and saw that the
backslash of the diagram (line 179) didn't find its way into it, while
the backlash outside of the literallayout (line 176) is present *and*
is read and displayed.

Here are the lines:

-------------------
[175]below.  Commits are shown as "o", and the links between them with
[176]lines drawn with - / and \.  Time goes left to right:</p><pre 
class="literallayout">        o--o--o &lt;-- Branch A
[177]       /
[178]o--o--o &lt;-- master
[179]                o--o--o &lt;-- Branch B</pre><p>If we need to tal
                [...snip...]
-----------------------
Right before o--o--o there should be the "\"!


   Perhaps the problem is in the source code of your input or in the
communication between your editor and asciidoc.

   What is your editor (I'm using vim here), and what is the
encoding of your editor? (Here it is iso-8859-1, just as in your
git-user-manual.html.) Could you mail the snippet of your input source
code, containing the diagram and one line before and one line after,
i.e. the lines with which you produced lines, say, 172-182?  Does the
backslash show up in the xml output, like in my version below?


Courage,

erich.

PS.

BTW  Did you change asciidoc.conf or any of the configuration files?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

(Branches.txt, containing only:)

        o--o--o <-- Branch A
       /
o--o--o <-- master
       \
        o--o--o <-- Branch B

My command:

asciidoc -b docbook Branches.txt gives:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML
V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";>

<article lang="de">
<articleinfo>
    <title>Branches</title>


</articleinfo>
<literallayout class="monospaced">      o--o--o &lt;-- Branch A
     /
o--o--o &lt;-- master
     \
      o--o--o &lt;-- Branch B</literallayout>
</article>

Now db2html works.





_______________________________________________
Asciidoc-discuss mailing list
Asciidoc-discuss@metaperl.com
http://metaperl.com/cgi-bin/mailman/listinfo/asciidoc-discuss

Reply via email to