Skip to content

Join citation-only lines onto the preceding text - #31

Merged
robdevops merged 1 commit into
mainfrom
claude/citations-inline
Oct 9, 2026
Merged

robdevops merged 1 commit into
mainfrom
claude/citations-inline

Conversation

@robdevops

Copy link
Copy Markdown
Owner

Summary

When the model puts links on their own lines after a paragraph (seen in MOVERS_BOTS replies), number_links left them as separate [1] / [2] lines. Citation-only lines are now glued to the end of the preceding text: ...thin volume.[1][2].

  • lib/tickers.py: number_links collapses runs of citation-only lines (CITE_ONLY_RUN_RE). Inline citations and links on lines with other text are untouched.
  • tests/test_tickers.py: new test for the joined, inline and mixed cases.

Test plan

  • make check on Python 3.13.5: 233 passed. Real Telegram output not checked (no live access).

🤖 Generated with Claude Code

https://claude.ai/code/session_014k4kywyN5dAo39izUPvxbw


Generated by Claude Code

@robdevops
robdevops merged commit ccd7d93 into main Oct 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants