[PATCH inputproto] Add minimal asciidoc syntax

Peter Hutterer peter.hutterer at who-t.net
Tue Mar 15 15:43:14 PDT 2011


On Tue, Mar 15, 2011 at 03:45:57PM -0400, Gaetan Nadon wrote:
> On Tue, 2011-03-15 at 15:29 +1000, Peter Hutterer wrote:
> 
> > Though this protocol description is mainly to be viewed as textfile, a
> > few
> > minor changes make it parsable for asciidoc to spit out reasonably
> > nicely-formatted html code.
> > 
> > Changes include:
> > - underline section headers with the matching lines
> > - add linebreaks before lists to parse them as lists
> > - change indentation level for normal text to be left-marging aligned
> > and
> >   for <pre> text to be indented
> > - comment out section dividers
> > 
> > It's possible to run asciidoc XI2proto.txt and get some nice html
> > output
> > now.
> > 
> 
> I get a bunch of fatal errors like this one:
> 
>         asciidoc: ERROR: XI2proto.txt: line 12: only book doctypes can contain level 0 sections

That just means the headers are one too high, easy to fix.
http://www.methods.co.nz/asciidoc/userguide.html#X17

Cheers,
  Peter

> The output produced looks nice, but rc=1 aborts the makefile.
> There are also whitespace errors in the source.
> 
> I'll post a prototype patch to make it easier to try things out.
> 
> 



More information about the xorg-devel mailing list