<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
On Tue, 2011-03-15 at 15:29 +1000, Peter Hutterer wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
<TT><FONT COLOR="#1a1a1a">Though this protocol description is mainly to be viewed as textfile, a few</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">minor changes make it parsable for asciidoc to spit out reasonably</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">nicely-formatted html code.</FONT></TT><BR>
<BR>
<TT><FONT COLOR="#1a1a1a">Changes include:</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">- underline section headers with the matching lines</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">- add linebreaks before lists to parse them as lists</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">- change indentation level for normal text to be left-marging aligned and</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a"> for <pre> text to be indented</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">- comment out section dividers</FONT></TT><BR>
<BR>
<TT><FONT COLOR="#1a1a1a">It's possible to run asciidoc XI2proto.txt and get some nice html output</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">now.</FONT></TT><BR>
<BR>
</BLOCKQUOTE>
I get a bunch of fatal errors like this one:
<BLOCKQUOTE>
<PRE>
asciidoc: ERROR: XI2proto.txt: line 12: only book doctypes can contain level 0 sections
</PRE>
</BLOCKQUOTE>
<BR>
The output produced looks nice, but rc=1 aborts the makefile.<BR>
There are also whitespace errors in the source.<BR>
<BR>
I'll post a prototype patch to make it easier to try things out.<BR>
<BR>
<BR>
</BODY>
</HTML>