Hello, 

I discovered a problem when exporting source blocks containing braces to
texinfo using `ox-texinfo'.  The texinfo exporter wraps source blocks
into a `example' environment, which takes care of source block
indentation but doesn't allow any braces to occur in the contained text,
since braces have a special meaning in TeX.

After reading the `texinfo' manual, it became clear that literal examples
should be exported also in a `verbatim' environment.  A patch making
this change to the exporter is attached.

Dario
diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el
index 8bc3520..211bf01 100644
--- a/lisp/ox-texinfo.el
+++ b/lisp/ox-texinfo.el
@@ -1409,7 +1409,7 @@ contextual information."
 	      (org-export-format-code-default src-block info)))
      ;; Case 2.  Other blocks
      (t
-      (format "@example\n%s@end example"
+      (format "@example\n@verbatim\n%s@end verbatim\n@end example"
 	      (org-export-format-code-default src-block info))))))
 
 ;;; Statistics Cookie

Reply via email to