Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remainder
  • Loading branch information
kthoden committed Jun 17, 2019
1 parent 5f4574d commit c0521ce
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tei2imxml.py
Expand Up @@ -290,15 +290,13 @@ def format_reference_list(used_citekeys, html_file):

logging.info("Opening %s", html_file)
# second part of function
with open(html_file, "r") as ding:
reference_list = soupparser.fromstring(ding, features="html.parser")

reference_list = etree.parse(str(html_file))
references = reference_list.xpath("//div[@class='references']")[0]

return references
# def format_reference_list ends here

def format_citations(used_citekeys, bibdata, html_file):
def format_citations_json(used_citekeys, bibdata, html_file):
"""Return a dictionary of the used citations as formatted entries.
citation_dict[citekey] = (authoryear_citation, year_citation, title)
Expand Down Expand Up @@ -1170,7 +1168,7 @@ def main():
args.CONFIG_FILE,
args.log_level,
(Path(args.log_dir) / SCRIPT_NAME) . with_suffix( ".log" ),
# args.log_file,
args.log_file,
)

if not os.path.exists(OUTPUT_DIR):
Expand Down

0 comments on commit c0521ce

Please sign in to comment.