Skip to content

Commit

Permalink
update visual
Browse files Browse the repository at this point in the history
  • Loading branch information
Chenghao Mou authored and Chenghao Mou committed Jun 25, 2019
1 parent 2fc00c9 commit ff37fa2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions elisa_dnt/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
matches = find(line, RULES)
if matches:
res = visual(line, matches, options, RULES)
with open(args.fb_visual[0], "a+") as o:
with open(args.fb_visual, "a+") as o:
o.write(f"<p>{res}</p>" + "\n")
else:
src_lines, tgt_lines = open(path).readlines(), open(args.fb_tgt).readlines()
Expand All @@ -89,9 +89,9 @@

if x_matches:
res = visual(src_line, x_src_matches, options, RULES)
with open(args.fb_visual[0], "a+") as o:
with open(args.fb_visual, "a+") as o:
o.write(f"<p>{res}</p>" + "\n")

res = visual(tgt_line, x_tgt_matches, options, RULES)
with open(args.fb_visual[0], "a+") as o:
with open(args.fb_visual, "a+") as o:
o.write(f"<p>{res}</p>" + "\n")
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='elisa-dnt',
version='0.0.6',
version='0.0.8',
packages=['elisa_dnt'],
url='https://github.com/ChenghaoMou/elisa-dnt',
license='',
Expand Down

0 comments on commit ff37fa2

Please sign in to comment.