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