Commits

Michael Forbes committed 77d452c

Fixes issue 10.
- Replace commas with semicolons in chunk labels.

Comments (0)

Files changed (1)

mmfweave/formatters.py

         else:
             raise NotImplementedError
 
+        # Commas cause problems in listing labels...
+        if ',' in chunk_label:
+            chunk_label = chunk_label.replace(',', ';')
+
         if 'listings' == self.options.latex_code_format:
             tex_chunk_title = '{\\lstinline|%s|}' % (chunk_title,)
             opts += ["language=%s" % (chunk.opts['lang'],),