# Shave by default.
-SHAVE_INIT([build-aux], [enable])
+#SHAVE_INIT([build-aux], [enable])
# Create murphy symlink to src.
if test ! -L murphy; then
\end_layout
\begin_layout Standard
-jhkjhkjh
+blah blah bla ....
+\end_layout
+
+\begin_layout Standard
+this is the enumeration test:
+\end_layout
+
+\begin_layout Itemize
+First level bbbbbb
+\end_layout
+
+\begin_deeper
+\begin_layout Itemize
+second level
+\end_layout
+
+\begin_layout Itemize
+another second level
+\end_layout
+
+\end_deeper
+\begin_layout Itemize
+first level again
+\end_layout
+
+\begin_layout Itemize
+now we try third level as well
+\end_layout
+
+\begin_deeper
+\begin_layout Itemize
+second
+\end_layout
+
+\begin_deeper
+\begin_layout Itemize
+third
+\end_layout
+
+\begin_layout Itemize
+jjjjj
+\end_layout
+
+\end_deeper
+\begin_layout Itemize
+again second
+\end_layout
+
+\begin_deeper
+\begin_layout Itemize
+third
+\end_layout
+
+\end_deeper
+\end_deeper
+\begin_layout Itemize
+first
+\end_layout
+
+\begin_layout Enumerate
+This is for 1
+\end_layout
+
+\begin_layout Enumerate
+for 2
+\end_layout
+
+\begin_layout Enumerate
+and for three
+\end_layout
+
+\begin_layout Description
+This will be the first among description thing
+\end_layout
+
+\begin_layout Description
+here we have the second
+\end_layout
+
+\begin_layout Description
+and the third
\end_layout
\begin_layout Part
import os, sys, re
from lxml import etree
+def fix_dummy(broken_xml):
+ start = 0
+ end = len(broken_xml)
+ fixed_xml = ""
+
+ for match in re.finditer(dummy_pattern, broken_xml):
+ fixed_xml += broken_xml[start:match.start()]
+ start = match.end()
+
+ if start < end:
+ fixed_xml += broken_xml[start:end]
+ return fixed_xml
+
def fix_graphs(broken_xml):
start = 0
end = len(broken_xml)
fixed_xml = ""
for match in re.finditer(graph_pattern, broken_xml):
- fixed_xml += broken_xml[start:match.start()]
+ fixed_xml += fix_dummy(broken_xml[start:match.start()])
fixed_xml += "<!ENTITY graph%s \"%s\">" % \
(match.group(1), os.path.basename(match.group(2)))
start = match.end()
if start < end:
- fixed_xml += broken_xml[start:end]
+ fixed_xml += fix_dummy(broken_xml[start:end])
return fixed_xml
def fix_files(broken_xml):
print "Input error %d - %s" % (errno, strerror)
exit(errno)
+dummy_pattern = re.compile("<[/]?dummy>")
file_pattern = re.compile("<!ENTITY file([0-9]*) \"([^\"]*)\">")
graph_pattern = re.compile("<!ENTITY graph([0-9]*) \"([^\"]*)\">")