From b95823f4db6fb9943790bbffd693ca9756ca954e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 14 Aug 2013 22:20:41 -0700 Subject: Minor code reformatting in script examples. --- scripts/caps.py | 3 ++- scripts/comments.py | 3 ++- scripts/deemph.py | 3 ++- scripts/graphviz.py | 3 ++- scripts/myemph.py | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) (limited to 'scripts') diff --git a/scripts/caps.py b/scripts/caps.py index e29d48854..b86cd1520 100755 --- a/scripts/caps.py +++ b/scripts/caps.py @@ -1,6 +1,7 @@ #!/usr/bin/env python -"""Pandoc filter to convert all regular text to uppercase. +""" +Pandoc filter to convert all regular text to uppercase. Code, link URLs, etc. are not affected. """ diff --git a/scripts/comments.py b/scripts/comments.py index 5700c3485..304af1a2d 100755 --- a/scripts/comments.py +++ b/scripts/comments.py @@ -2,7 +2,8 @@ from pandoc import toJSONFilter import re -"""Pandoc filter that causes everything between +""" +Pandoc filter that causes everything between '' and '' to be ignored. The comment lines must appear on lines by themselves, with blank lines surrounding diff --git a/scripts/deemph.py b/scripts/deemph.py index 467641b4a..f69dac5b8 100755 --- a/scripts/deemph.py +++ b/scripts/deemph.py @@ -2,7 +2,8 @@ from pandoc import walk, toJSONFilter from caps import caps -"""Pandoc filter that causes emphasized text to be displayed +""" +Pandoc filter that causes emphasized text to be displayed in ALL CAPS. """ diff --git a/scripts/graphviz.py b/scripts/graphviz.py index 2d977079b..519a3a9cc 100755 --- a/scripts/graphviz.py +++ b/scripts/graphviz.py @@ -1,6 +1,7 @@ #!/usr/bin/env python -"""Pandoc filter to process code blocks with class "graphviz" into +""" +Pandoc filter to process code blocks with class "graphviz" into graphviz-generated images. """ diff --git a/scripts/myemph.py b/scripts/myemph.py index 0514df317..e527a0b2e 100755 --- a/scripts/myemph.py +++ b/scripts/myemph.py @@ -1,7 +1,8 @@ #!/usr/bin/env python from pandoc import toJSONFilter, rawInline -"""Pandoc filter that causes emphasis to be rendered using +""" +Pandoc filter that causes emphasis to be rendered using the custom macro '\myemph{...}' rather than '\emph{...}' in latex. Other output formats are unaffected. """ -- cgit v1.2.3