Commits

Anonymous committed 2ee3ea8

pretty tables

Comments (0)

Files changed (4)

 }
 
 code, pre {
+    white-space: pre;
     background: #f0f0f0;
     font-size: 11pt;
     line-height: 120%;
     padding: 10px;
 }
 
+table {
+    padding: 0;
+    border-collapse: collapse;
+}
+
 td {
-    vertical-align: top;
+    vertical-align: baseline;
+    margin: 0;
+    padding-left: 0.3em;
+    padding-right: 0.3em;
+    border: solid gray 1px;
+    border-spacing: 0;
 }
 
 #navigation {

docs/heading.en.yinc2

     td p content;
 };
 
-decl glossary(border=1) alias table;
+decl glossary alias table;
 
 decl ne(*href) alias li {
     a href=*href content;
     Code
         ||
         >>> from pypeg2.xmlast import thing2xml
-        >>> print(thing2xml(f, pretty=True).decode())
+        >>> print(thing2xml(f, pretty=True).decode())
         <Function typing="int" name="f">
           <Parameters>
             <Parameter typing="int" name="a"/>

docs/parser_engine.en.yhtml2

     h3 id=parse > Function parse()
    
     h4 > Synopsis
-    p > «parse(text, thing, filename=None, whitespace=whitespace, comment=None)»
+    pre
+        ||
+        parse(text, thing, filename=None, whitespace=whitespace,
+                comment=None)
+        ||
 
     p   >>
         Parse text following «thing» as grammar and return the resulting things or