-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle indentation #112
Comments
What are those indentations? Is that something you maintain manually? |
Yep, it appeared that indentations are manual - liberapay/liberapay.com#1566 (comment) I am working on a patch. It already works, but needs a refactor - #114. |
Refactored a bit. I think it is ready now. |
* Support indented requirements (fixes #112) * Refactor amend_requirements_content() Remove duplicate code from is_different_lines(). * Indent only non-empty lines * Refactor and make linter happy Rename new_lines to new_text where it is not list * Add test for indented spec
Released version 0.14.6 for this. |
Would be nice if
hashin
could handle indented files like this one:https://github.com/liberapay/liberapay.com/blob/master/requirements_base.txt
Right now it just inserts a new entry below:
The text was updated successfully, but these errors were encountered: