Minor code reformatting in script examples.
commitb95823f4db6fb9943790bbffd693ca9756ca954e
authorJohn MacFarlane <fiddlosopher@gmail.com>
dateWed 14 Aug 2013, 22:20 (13 years ago)
parent5d2afd3
scripts/caps.py+2−1
@@ -1,6 +1,7 @@
11#!/usr/bin/env python
22
3−"""Pandoc filter to convert all regular text to uppercase.
3+"""
4+Pandoc filter to convert all regular text to uppercase.
45Code, link URLs, etc. are not affected.
56"""
67
scripts/comments.py+2−1
@@ -2,7 +2,8 @@
22from pandoc import toJSONFilter
33import re
44
5−"""Pandoc filter that causes everything between
5+"""
6+Pandoc filter that causes everything between
67'<!-- BEGIN COMMENT -->' and '<!-- END COMMENT -->'
78to be ignored. The comment lines must appear on
89lines by themselves, with blank lines surrounding
scripts/deemph.py+2−1
@@ -2,7 +2,8 @@
22from pandoc import walk, toJSONFilter
33from caps import caps
44
5−"""Pandoc filter that causes emphasized text to be displayed
5+"""
6+Pandoc filter that causes emphasized text to be displayed
67in ALL CAPS.
78"""
89
scripts/graphviz.py+2−1
@@ -1,6 +1,7 @@
11#!/usr/bin/env python
22
3−"""Pandoc filter to process code blocks with class "graphviz" into
3+"""
4+Pandoc filter to process code blocks with class "graphviz" into
45graphviz-generated images.
56"""
67
scripts/myemph.py+2−1
@@ -1,7 +1,8 @@
11#!/usr/bin/env python
22from pandoc import toJSONFilter, rawInline
33
4−"""Pandoc filter that causes emphasis to be rendered using
4+"""
5+Pandoc filter that causes emphasis to be rendered using
56the custom macro '\myemph{...}' rather than '\emph{...}'
67in latex. Other output formats are unaffected.
78"""