Closed merajhashemi closed 3 months ago
Hi @merajhashemi! The rationale for this behavior is that arXiv uses this %auto-ignore comment to mark a file as not being the main tex file to be compiled. You can see more info here. We could definitely make the content matching more strict (e.g. there cannot be more text apart from "auto-ignore"), feel free to send a PR if you're up for it :)
Hi @jponttuset!
Thanks for letting me know about this! I didn't realize arXiv uses the %auto-ignore
comment in that way. I've opened a pull request (#96) to tighten the content matching.
I made a small suggestion in the PR not to over-tighten the matching :)
While fixing issue #91, I discovered that comments in lines containing the word
auto-ignore
are not being removed as expected. This behavior is not documented in either the README or the help message, which may lead to unexpected outcomes for users. I suppose there is a specific reason for this behavior as it is also being tested 🤔Example
Input:
Output:
Expected Output: