##// END OF EJS Templates
Crop if no endtag is given
jakobgager -
Show More
@@ -44,8 +44,8 b' def citation2latex(s):'
44 44 for citation in parser.citelist:
45 45 outtext += s[startpos:citation[1]]
46 46 outtext += '\\cite{%s}'%citation[0]
47 startpos = citation[2]
48 outtext += s[startpos:]
47 startpos = citation[2] if len(citation)==3 else -1
48 outtext += s[startpos:] if startpos <> -1 else ''
49 49 return outtext
50 50
51 51 #-----------------------------------------------------------------------------
General Comments 0
You need to be logged in to leave comments. Login now