Commit 1341c642 authored by Andrey Kamaev's avatar Andrey Kamaev

Merge pull request #51 from taka-no-me/java/fix-build-after-normalization

parents 65d07c56 57d077b9
...@@ -202,8 +202,8 @@ class RstParser(object): ...@@ -202,8 +202,8 @@ class RstParser(object):
# skip lines if line-skipping mode is activated # skip lines if line-skipping mode is activated
if skip_code_lines: if skip_code_lines:
if not l: if not l:
continue continue
if l.startswith(" "): if l.startswith(" "):
None None
else: else:
...@@ -293,19 +293,19 @@ class RstParser(object): ...@@ -293,19 +293,19 @@ class RstParser(object):
# record other lines as long description # record other lines as long description
if (skip_code_lines): if (skip_code_lines):
ll = ll.replace("/*", "/ *") ll = ll.replace("/*", "/ *")
ll = ll.replace("*/", "* /") ll = ll.replace("*/", "* /")
if (was_code_line): if (was_code_line):
func["long"] = func.get("long", "") + "\n" + ll + "\n" func["long"] = func.get("long", "") + "\n" + ll + "\n"
else: else:
was_code_line = True; was_code_line = True;
func["long"] = func.get("long", "") + ll +"\n<code>\n\n // C++ code:\n\n" func["long"] = func.get("long", "") + ll +"\n<code>\n\n // C++ code:\n\n"
else: else:
if (was_code_line): if (was_code_line):
func["long"] = func.get("long", "") + "\n" + ll + "\n</code>\n"; func["long"] = func.get("long", "") + "\n" + ll + "\n</code>\n";
was_code_line = False; was_code_line = False;
else: else:
func["long"] = func.get("long", "") + "\n" + ll func["long"] = func.get("long", "") + "\n" + ll
# endfor l in lines # endfor l in lines
if fdecl.balance != 0: if fdecl.balance != 0:
......
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