You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2019/01/03 21:16:21 UTC
svn commit: r1850269 - /subversion/site/tools/escape.py
Author: danielsh
Date: Thu Jan 3 21:16:21 2019
New Revision: 1850269
URL: http://svn.apache.org/viewvc?rev=1850269&view=rev
Log:
* tools/escape.py: Make the links open in the '_parent' context, since this
script's output is embedded into an iframe.
Found by: markphip
Modified:
subversion/site/tools/escape.py
Modified: subversion/site/tools/escape.py
URL: http://svn.apache.org/viewvc/subversion/site/tools/escape.py?rev=1850269&r1=1850268&r2=1850269&view=diff
==============================================================================
--- subversion/site/tools/escape.py (original)
+++ subversion/site/tools/escape.py Thu Jan 3 21:16:21 2019
@@ -12,6 +12,7 @@ issue_references = re.compile(r'((?:SVN-
print("<!-- Automatically generated by ^/subversion/site/tools/escape.py -->")
for line in fileinput.input():
line = html.escape(line)
- line = revision_numbers.sub(r'<a href="https://svn.apache.org/r\1">r\1</a>', line)
- line = issue_references.sub(r'<a href="/issue-\2">\1</a>', line)
+ # ### Hardcode target="_parent" because that's what our caller needs.
+ line = revision_numbers.sub(r'<a target="_parent" href="https://svn.apache.org/r\1">r\1</a>', line)
+ line = issue_references.sub(r'<a target="_parent" href="/issue-\2">\1</a>', line)
print(line, end='')