summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2022-08-23 15:30:16 -0700
committerWayne Davison <wayne@opencoder.net>2022-08-23 15:30:32 -0700
commit1f2f4131674af790c2e98149c1673b5e9ad1d35d (patch)
tree9c3a623068e03b4ccdc496e893c7673ac317a0e7
parent0a09df2c5e62fa4e694f76a35d6f4e786907ef75 (diff)
downloadrsync-1f2f4131674af790c2e98149c1673b5e9ad1d35d.tar.gz
Fix split limits.
-rwxr-xr-xmd-convert4
1 files changed, 2 insertions, 2 deletions
diff --git a/md-convert b/md-convert
index 19709c8d..a48689a7 100755
--- a/md-convert
+++ b/md-convert
@@ -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: