Commit 09a4968b authored by Ryan Pavlik's avatar Ryan Pavlik
Browse files

add filter doc and default arguments

parent 665c771b
......@@ -56,6 +56,14 @@ def do_make_identifier(s, replacement='_'):
from re import sub
return sub(r"[-/. \n]", replacement, s)
def do_c_block_comment(s, begin_chars, line_prefix, end_chars):
def do_c_block_comment(s, begin_chars='/*', line_prefix=' * ', end_chars=' */'):
"""Makes things like this: (with begin_chars='/*', line_prefix=' * ', end_chars=' */')
* foo
* bar
return do_prefix_block(s, line_prefix=line_prefix, blank_line_prefix=line_prefix.rstrip(),
block_begin=(begin_chars + '\n'), block_end=('\n' + end_chars))
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment