removed obsolete issues (many of them fixed with AE)
[docutils.git] / sandbox / grubert / test / literal.txt
blob2d771ac822cbf32035019d8546891cbfc3de0abd
1 Literal Blocks
2 --------------
4 Literal blocks are indented, and indicated with a double-colon ("::")
5 at the end of the preceding paragraph (right here ``-->``)::
7     if literal_block:
8         text = 'is left as-is'
9         spaces_and_linebreaks = 'are preserved'
10         markup_processing = None
12 Or some code formatting ::
14      typedef
15      
16        mpl::push_back<           // >----------------+
17                                  //                  |
18            mpl::push_back<       // >--------------+ |
19                                  //                | |
20                mpl::push_back<   // >------------+ | |
21                    mpl::vector<> //              | | |
22                  , int           //              | | |
23                >::type           // first step <-+ | |
24              , long              //                | |
25            >::type               // second step <--+ |
26          , double                //                  |
27        >::type                   // third step <-----+
28        
29      vec;
31 The central makefile construct is called a *rule*, and is described
32 with the following syntax:
34 .. parsed-literal::
36    *dependent-target* : *prerequisites*
37            *commands*
40 parsed literal with markup spanning lines. should produce valid LaTeX
41 code, but the indentation is ragged.
43 .. parsed-literal::
45    Hey!
46      *this is some emphasized text
47      that spans two lines* and
48      this is **some more bold text
49      spanning two lines**
53 a literal block with underscores and markup
55 .. parsed-literal::
57        mpl::push_back<           // >----------------+
58                                  //                  |
59            mpl::push_back<       // >--------------+ |
60                                  // <- *end* ------+-+
63 inline ``literal`` with double hyphen ``two hyphens: --`` and tripplets
64 ``three hyphens: ---``.
66 Special characters
67 ------------------
69 lele needed a patch to process the italian ZopeBook, because
70 of the tilde ~ and the backquote chars.
72 1. scaricarlo anche usando un browser web::
74      lele:~/zope $ wget http://zope.org/Products/Zope/2.7.0/Zope-2.7.0-linux-x86.tgz
75      --00:49:51--  http://zope.org/Products/Zope/2.7.0/Zope-2.7.0-linux-x86.tgz
76                 => `Zope-2.7.0-linux-x86.tgz'
79 this works as long as the document is not italian.
81 bracketts at line start and empty lines
83 .. parsed-literal::
85    with
86    [
87        _Container=std::map<std::string,std::string>,
88        _InIt=std::list<std::string>::iterator
89    ]
90    *messages continue...*