ruby / ruby/rdoc

Collect up expand_tabs implementations

Open
#513 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
930
Forks
465
Avg merge
3d 10h
Merged PRs (30d)
27

Description

There is an hard tab(s) to spaces implementation in similar to RDoc::Text#expand_tabs. I think it should be collected up, but @drbrain said,

Too bad expand_tab doesn't support @options.tab_width

And RDoc::Text#expand_tabs doesn't fit for other one's namespace.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the linked implementations and the existing RDoc::Text#expand_tabs entry point in lib/rdoc/text.rb, including how @options.tab_width is handled. Identify the appropriate shared location and callers for collecting the implementations, then verify that the collected behavior remains usable across namespaces.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.