09cb75b
--- xen-4.2.2/tools/pygrub/src/GrubConf.py.orig	2013-04-23 17:42:55.000000000 +0100
09cb75b
+++ xen-4.2.2/tools/pygrub/src/GrubConf.py	2013-05-14 21:59:55.660558780 +0100
09cb75b
@@ -390,7 +390,7 @@
09cb75b
                 continue
09cb75b
 
09cb75b
             # new image
09cb75b
-            title_match = re.match('^menuentry ["\'](.*)["\'] (.*){', l)
09cb75b
+            title_match = re.match('^menuentry ["\']([^"\']*)["\'] (.*){', l)
09cb75b
             if title_match:
09cb75b
                 if img is not None:
09cb75b
                     raise RuntimeError, "syntax error: cannot nest menuentry (%d %s)" % (len(img),img)