Skip to content

Commit

Permalink
revert var name
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Nov 16, 2018
1 parent a7c6d4a commit bfd4ff6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions python/citation_vim/item.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

import collections
from citation_vim.utils import compat_str, is_current, double_braces
from citation_vim.utils import compat_str, is_current, strip_braces

class Item(object):

Expand Down Expand Up @@ -71,7 +71,7 @@ def describe_with_source_field(self, desc_values):
return desc_format.format(*desc_values)

def get_field_value(self, field):
return double_braces(getattr(self, field)) if hasattr(self, field) else ""
return strip_braces(getattr(self, field)) if hasattr(self, field) else ""

def wrap(self, string):
wrapper = self.context['wrap_chars']
Expand Down
2 changes: 1 addition & 1 deletion python/citation_vim/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ def check_path(path):
def raiseError(message):
raise RuntimeError(u"Citation.vim error: " + message)

def double_braces(string):
def strip_braces(string):
return re.sub("[{.*}]+", "", string)

0 comments on commit bfd4ff6

Please sign in to comment.