From 7f3450184d9db84e8b5c16e041d5146ea647d8a9 Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Sun, 8 Jan 2017 13:15:48 +0000 Subject: [PATCH] Solving ticket http://mutabit.com/repos.fossil/grafoscopio/tktview?name=c3d7a790ff. --- repository/Grafoscopio/GrafoscopioNode.class.st | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/repository/Grafoscopio/GrafoscopioNode.class.st b/repository/Grafoscopio/GrafoscopioNode.class.st index b56d998..570fea2 100644 --- a/repository/Grafoscopio/GrafoscopioNode.class.st +++ b/repository/Grafoscopio/GrafoscopioNode.class.st @@ -303,11 +303,12 @@ GrafoscopioNode >> demote [ { #category : #exporting } GrafoscopioNode >> exportCodeBlockTo: aStream [ - "I convert the content of a node taged as 'código' (code) as pandoc markdown and put it Into aStream. + "I convert the content of a node taged as 'código' (code) as pandoc markdown and put it + into aStream. The code block is decorated with LaTeX commands for proper syntax highlighting using pygments. Pdf exportation requires the installation of pygments and minted package for latex" aStream nextPutAll: ('\begin{minted}{smalltalk}'); lf. - aStream nextPutAll: (self body contents withInternetLineEndings); lf. + aStream nextPutAll: (self body contents asString withInternetLineEndings); lf. aStream nextPutAll: '\end{minted}';lf;lf. ^aStream contents ]