newlines to comments
This commit is contained in:
parent
0bc32e75ba
commit
31a9b23d45
1 changed files with 4 additions and 4 deletions
|
@ -251,7 +251,7 @@ class Formatter(FormatterBase):
|
||||||
def comment(self, text):
|
def comment(self, text):
|
||||||
# real comments (lines with two hash marks)
|
# real comments (lines with two hash marks)
|
||||||
if text[0:2] == '##':
|
if text[0:2] == '##':
|
||||||
return "/* %s */\n" % text[2:]
|
return "/* %s */\n" % text[2:].strip()
|
||||||
|
|
||||||
# Some kind of Processing Instruction
|
# Some kind of Processing Instruction
|
||||||
# http://moinmo.in/HelpOnProcessingInstructions
|
# http://moinmo.in/HelpOnProcessingInstructions
|
||||||
|
@ -267,13 +267,13 @@ class Formatter(FormatterBase):
|
||||||
return '<note warning>This page is deprecated</note>\n'
|
return '<note warning>This page is deprecated</note>\n'
|
||||||
|
|
||||||
if tokens[0] == 'redirect':
|
if tokens[0] == 'redirect':
|
||||||
return text
|
return text + "\n"
|
||||||
|
|
||||||
if tokens[0] == 'pragma':
|
if tokens[0] == 'pragma':
|
||||||
# TODO: can do 'description' via 'meta' dokuwiki plugin
|
# TODO: can do 'description' via 'meta' dokuwiki plugin
|
||||||
return "/* pragma: %s */" % " ".join(tokens[1:])
|
return "/* pragma: %s */\n" % " ".join(tokens[1:])
|
||||||
|
|
||||||
return "/* %s */" % text.lstrip('#')
|
return "/* %s */\n" % text.lstrip('#')
|
||||||
|
|
||||||
def macro(self, macro_obj, name, args):
|
def macro(self, macro_obj, name, args):
|
||||||
def email(args):
|
def email(args):
|
||||||
|
|
Loading…
Reference in a new issue