diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-05-16 23:14:57 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-05-16 23:14:57 +0900 |
| commit | 092d87bde9a878415298ad7276335c529521acac (patch) | |
| tree | 9ac8a50dec84d5622839ad53f31d39cbb5bdc234 /sphinx/util/nodes.py | |
| parent | c81ae00430317be4d0811439e546c71a6412eb18 (diff) | |
| download | sphinx-git-092d87bde9a878415298ad7276335c529521acac.tar.gz | |
Fix #6375: extlinks: Cannot escape angle brackets in link caption
Diffstat (limited to 'sphinx/util/nodes.py')
| -rw-r--r-- | sphinx/util/nodes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/nodes.py b/sphinx/util/nodes.py index 60e0144b0..58c6a6698 100644 --- a/sphinx/util/nodes.py +++ b/sphinx/util/nodes.py @@ -31,7 +31,7 @@ logger = logging.getLogger(__name__) # \x00 means the "<" was backslash-escaped -explicit_title_re = re.compile(r'^(.+?)\s*(?<!\x00)<(.*?)>$', re.DOTALL) +explicit_title_re = re.compile(r'^(.+?)\s*(?<!\x00)<([^<]*?)>$', re.DOTALL) caption_ref_re = explicit_title_re # b/w compat alias |
