diff options
author | Sayamindu Dasgupta <sayamindu@gmail.com> | 2009-02-24 17:12:10 (GMT) |
---|---|---|
committer | Sayamindu Dasgupta <sayamindu@gmail.com> | 2009-02-24 17:12:10 (GMT) |
commit | eaeeabf6fffd923a7ee6b91869b9802d812a7c5d (patch) | |
tree | 07fb4d66fdbd00e23482266755b0f8977aa6d192 /translate-toolkit-1.3.0 | |
parent | 7c8a07b6f565f15dfb98d6c8cd0cb95dd5c68811 (diff) |
Fix the poparser so that it can correctly handle comments beginning with two hash signs (##)
Diffstat (limited to 'translate-toolkit-1.3.0')
-rw-r--r-- | translate-toolkit-1.3.0/translate/storage/poparser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/translate-toolkit-1.3.0/translate/storage/poparser.py b/translate-toolkit-1.3.0/translate/storage/poparser.py index 958a3fc..b0c8667 100644 --- a/translate-toolkit-1.3.0/translate/storage/poparser.py +++ b/translate-toolkit-1.3.0/translate/storage/poparser.py @@ -99,7 +99,7 @@ def parse_comment(parse_state, unit): next_line = parse_state.next_line if len(next_line) > 0 and next_line[0] == '#': next_char = next_line[1] - if isspace(next_char): + if isspace(next_char) or next_char == '#': append(unit.othercomments, parse_state.decode(next_line)) elif next_char == '.': append(unit.automaticcomments, parse_state.decode(next_line)) |