Browse Source
Merge pull request #4 from joyeusenoelle/dev
discard blank lines
master
No account linked to committer's email address
1 changed files with
2 additions and
0 deletions
-
pyris.py
|
|
|
|
|
|
|
|
title = False |
|
|
title = False |
|
|
sTitle = "" |
|
|
sTitle = "" |
|
|
for line in lines: |
|
|
for line in lines: |
|
|
|
|
|
if line.strip() == "": # it's a blank line and can be discarded |
|
|
|
|
|
continue |
|
|
if line == "PT J": |
|
|
if line == "PT J": |
|
|
cite.addType("JOUR") |
|
|
cite.addType("JOUR") |
|
|
if line[:2] == "AF": # we're on authors |
|
|
if line[:2] == "AF": # we're on authors |