Deal better with whitespace before comments in docstrings.

This commit is contained in:
Eric S. Raymond 2007-08-26 07:36:39 +00:00
parent 97edd7264a
commit 0d0893ab29

View file

@ -181,7 +181,7 @@ class CrossRef:
elif state == "macro_header" and line.strip() and line.strip()[0] != "#":
state = "macro_body"
if state == "macro_header":
here.docstring += line[1:]
here.docstring += line.lstrip()[1:]
if state in ("macro_header", "macro_body"):
here.hash.update(line)
elif line.strip().startswith("#undef"):