# HG changeset patch # User Paul Boddie # Date 1371322440 -7200 # Node ID 18ed5c4f294a93bccb1b7302d9ca25d0d12928cd # Parent 9eb0dcdf488c4766ec019446048a85c440f2c04c Allow link body details to specify default link targets. diff -r 9eb0dcdf488c -r 18ed5c4f294a xmlparser.py --- a/xmlparser.py Tue Jun 11 15:23:18 2013 +0200 +++ b/xmlparser.py Sat Jun 15 20:54:00 2013 +0200 @@ -310,8 +310,11 @@ text = "" # For anchor links, just use the raw text and let Moin do the formatting. + # Set an empty default target, overwriting it if enclosing elements + # specify target details. elif name == "ac:link-body": + self.target = self.target or "" self.label = text.strip() text = ""