diff options
author | Wayne Davison <wayne@opencoder.net> | 2022-08-23 15:30:16 -0700 |
---|---|---|
committer | Wayne Davison <wayne@opencoder.net> | 2022-08-23 15:30:32 -0700 |
commit | 1f2f4131674af790c2e98149c1673b5e9ad1d35d (patch) | |
tree | 9c3a623068e03b4ccdc496e893c7673ac317a0e7 | |
parent | 0a09df2c5e62fa4e694f76a35d6f4e786907ef75 (diff) | |
download | rsync-1f2f4131674af790c2e98149c1673b5e9ad1d35d.tar.gz |
Fix split limits.
-rwxr-xr-x | md-convert | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -389,7 +389,7 @@ class TransformHtml(HTMLParser): if val.startswith(('https://', 'http://', 'mailto:', 'ftp:')): pass # nothing to check elif '#' in val: - pg, tgt = val.split('#', 2) + pg, tgt = val.split('#', 1) if pg and pg not in VALID_PAGES or '#' in tgt: st.bad_hashtags.add(val) elif tgt in ('', 'opt', 'dopt'): @@ -478,7 +478,7 @@ class TransformHtml(HTMLParser): find = 'href="' + st.a_href + '"' for j in range(len(st.html_out)-1, 0, -1): if find in st.html_out[j]: - pg, tgt = st.a_href.split('#', 2) + pg, tgt = st.a_href.split('#', 1) derived = txt2target(atxt, tgt) if pg == '': if derived in st.latest_targets: |