Loading pybtex/database/output/bibtex.py +2 −2 Original line number Diff line number Diff line Loading @@ -88,7 +88,7 @@ class Writer(BaseWriter): raise BibTeXError('String has unmatched braces: %s' % s) def _encode(self, text): ur"""Encode text as LaTeX. r"""Encode text as LaTeX. >>> w = Writer(encoding='ASCII') >>> print(w._encode(u'1970–1971.')) Loading @@ -107,7 +107,7 @@ class Writer(BaseWriter): return codecs.encode(text, 'ulatex+{}'.format(self.encoding)) def _encode_with_comments(self, text): ur"""Encode text as LaTeX, preserve comments. r"""Encode text as LaTeX, preserve comments. >>> w = Writer(encoding='ASCII') >>> print(w._encode_with_comments(u'1970–1971. %% † RIP †')) Loading pybtex/style/names/lastfirst.py +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ from pybtex.style.template import join class NameStyle(BaseNameStyle): def format(self, person, abbr=False): ur""" r""" Format names similarly to {vv~}{ll}{, jj}{, f.} in BibTeX. >>> from pybtex.database import Person Loading pybtex/style/names/plain.py +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ from pybtex.style.template import join class NameStyle(BaseNameStyle): def format(self, person, abbr=False): ur""" r""" Format names similarly to {ff~}{vv~}{ll}{, jj} in BibTeX. >>> from pybtex.database import Person Loading pybtex/tests/bibtex_parser_test.py +3 −3 Original line number Diff line number Diff line Loading @@ -439,7 +439,7 @@ class CrossFileMacrosTest(ParserTest, TestCase): class AtCharacterTest(ParserTest, TestCase): input_strings = [ ur""", r""", @proceedings{acc, title = {Proc.\@ of the American Control Conference}, notes = "acc@example.org" Loading @@ -459,7 +459,7 @@ class AtCharacterTest(ParserTest, TestCase): class AtCharacterInUnwantedEntryTest(ParserTest, TestCase): parser_options = {'wanted_entries': []} input_strings = [ ur""", r""", @proceedings{acc, title = {Proc.\@ of the American Control Conference}, notes = "acc@example.org" Loading @@ -471,7 +471,7 @@ class AtCharacterInUnwantedEntryTest(ParserTest, TestCase): class CaseSensitivityTest(ParserTest, TestCase): input_strings = [ ur""", r""", @Article{CamelCase, Title = {To CamelCase or Under score}, year = 2009, Loading Loading
pybtex/database/output/bibtex.py +2 −2 Original line number Diff line number Diff line Loading @@ -88,7 +88,7 @@ class Writer(BaseWriter): raise BibTeXError('String has unmatched braces: %s' % s) def _encode(self, text): ur"""Encode text as LaTeX. r"""Encode text as LaTeX. >>> w = Writer(encoding='ASCII') >>> print(w._encode(u'1970–1971.')) Loading @@ -107,7 +107,7 @@ class Writer(BaseWriter): return codecs.encode(text, 'ulatex+{}'.format(self.encoding)) def _encode_with_comments(self, text): ur"""Encode text as LaTeX, preserve comments. r"""Encode text as LaTeX, preserve comments. >>> w = Writer(encoding='ASCII') >>> print(w._encode_with_comments(u'1970–1971. %% † RIP †')) Loading
pybtex/style/names/lastfirst.py +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ from pybtex.style.template import join class NameStyle(BaseNameStyle): def format(self, person, abbr=False): ur""" r""" Format names similarly to {vv~}{ll}{, jj}{, f.} in BibTeX. >>> from pybtex.database import Person Loading
pybtex/style/names/plain.py +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ from pybtex.style.template import join class NameStyle(BaseNameStyle): def format(self, person, abbr=False): ur""" r""" Format names similarly to {ff~}{vv~}{ll}{, jj} in BibTeX. >>> from pybtex.database import Person Loading
pybtex/tests/bibtex_parser_test.py +3 −3 Original line number Diff line number Diff line Loading @@ -439,7 +439,7 @@ class CrossFileMacrosTest(ParserTest, TestCase): class AtCharacterTest(ParserTest, TestCase): input_strings = [ ur""", r""", @proceedings{acc, title = {Proc.\@ of the American Control Conference}, notes = "acc@example.org" Loading @@ -459,7 +459,7 @@ class AtCharacterTest(ParserTest, TestCase): class AtCharacterInUnwantedEntryTest(ParserTest, TestCase): parser_options = {'wanted_entries': []} input_strings = [ ur""", r""", @proceedings{acc, title = {Proc.\@ of the American Control Conference}, notes = "acc@example.org" Loading @@ -471,7 +471,7 @@ class AtCharacterInUnwantedEntryTest(ParserTest, TestCase): class CaseSensitivityTest(ParserTest, TestCase): input_strings = [ ur""", r""", @Article{CamelCase, Title = {To CamelCase or Under score}, year = 2009, Loading